<template>

    <el-dialog
      id="rmbDialog"
      class="eldialog el-dialog-m0"
      :visible.sync="visible"
      :title="title"
      :close-on-click-modal="false"
      append-to-body
      top="2vh"
      width="1300px"
      :close-on-press-escape="false"
    >
  
      <el-main v-loading="loading" element-loading-text="人员数据正在加载">
        <el-form style="margin: 0px" ref="form" :model="person">
          <div style="overflow-y: auto;overflow-x: hidden;height: 75vh">  <!--:style="{height:heightDialog+'px'}"-->
            <el-row :gutter="20">
              <el-col :span="24">
                <div style="height: 750px">
                  <table cellpadding="0" cellspacing="0" class="rm_table1">
                    <tr>
                      <td class="table1_w1 tdBg textAlign">
                        姓 名
                      </td>
                      <td class="table1_w5" style="overflow: hidden">
                        <el-form-item prop="a0101">
                          <el-input v-model="person.a0101" class="borderNone" size="small" :disabled="true"
                          />
                        </el-form-item>
                      </td>
                      <td class="table1_w1 tdBg textAlign">
                        性 别
                      </td>
                      <td class="table1_w2">
                        <el-form-item prop="a0104">
                          <el-input v-model="person.a0104" class="borderNone" size="small" :disabled="true"
                                    :readonly="true"/>
                          <!-- <el-radio-group v-model="person.a0104" :disabled="true" :readonly="true">
                            <el-radio label="1">男</el-radio>
                            <el-radio label="2">女</el-radio>
                          </el-radio-group>-->
                        </el-form-item>
                      </td>
                      <td class="table1_w1 lh18 tdBg textAlign">
                        出 生
                        <br>年 月
                      </td>
                      <td class="table1_w5" style="overflow: hidden">
                        <el-form-item prop="a0107">
                          <!--<el-input v-model="person.a0107" class="borderNone" size="small" :disabled="true" :readonly="true" />-->
                          <el-date-picker
                            class="borderNone"
                            v-model="person.a0107"
                            type="date"
                            style="width: 100%"
                            :disabled="true"
                            :readonly="true"
                            placeholder="选择日期"
                            format="yyyy.MM"
                          />
                        </el-form-item>
                      </td>
                      <td class="table1_w3" rowspan="4">
                        <img :src="person.photoName" v-if="person.photoName != null && person.photoName != ''"
                             style="width: 120px;height: 180px;max-width: 100%; max-height: 100%;margin-left: 8px" alt=""
                             :disabled="true"/>
                        <i class='el-icon-s-custom' v-if="person.photoName == null || person.photoName == ''"
                           style='font-size: 150px;color: silver; display: flex; align-items: center;justify-content: center;'></i>
                        <!--                      <qz-inputphoto ref="inputphoto" :disabled="true" @onUpdatePhoto="onUpdatePhoto"/>-->
                      </td>
                    </tr>
                    <tr>
                      <td class="tdBg textAlign">
                        &nbsp;民 族
                      </td>
                      <td class="table1_w5" style="overflow: hidden">
                        <el-form-item prop="a0117">
                          <el-input v-model="person.a0117" class="borderNone" :description.sync="person.nationdesc"
                                    size="small" :disabled="true" :readonly="true"/>
                        </el-form-item>
                      </td>
                      <td class="tdBg textAlign">
                        &nbsp;籍 贯
                      </td>
                      <td class="table1_w5" style="overflow: hidden">
                        <el-form-item prop="a0111a">
                          <el-input v-model="person.a0111a" class="borderNone" :description.sync="person.native_place"
                                    size="small" :disabled="true" :readonly="true"/>
                        </el-form-item>
                      </td>
                      <td class="tdBg textAlign">
                        &nbsp;出生地
                      </td>
                      <td class="table1_w5" style="overflow: hidden">
                        <el-form-item prop="a0114a">
                          <el-input v-model="person.a0114a" class="borderNone" :description.sync="person.birth_place"
                                    size="small" :disabled="true" :readonly="true"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr>
                      <td class="tdBg lh18 textAlign">
                        入 党
                        <br>时 间
                      </td>
                      <td class="table1_w5" style="overflow: hidden">
                        <el-form-item prop="a0140">
                          <el-input v-model="person.a0140" class="borderNone" size="small"
                                    :readonly="true" :disabled="false" @click.native="openRdsj(person.a0184,'入党时间')"/>
                        </el-form-item>
                      </td>
                      <td class="tdBg lh18 textAlign">
                        &nbsp;参加工
                        <br>作时间
                      </td>
                      <td class="table1_w5" style="overflow: hidden">
                        <el-form-item prop="a0134">
                          <!-- <el-input v-model="person.a0134" class="borderNone" size="small" :disabled="true" :readonly="true" />-->
                          <el-date-picker
                            v-model="person.a0134"
                            type="date"
                            :disabled="true"
                            :readonly="true"
                            style="width: 100%"
                            placeholder="选择日期"
                            class="borderNone"
                            format="yyyy.MM"
                          />
                        </el-form-item>
                      </td>
                      <td class="tdBg lh18 textAlign">
                        &nbsp;健 康
                        <br>状 况
                      </td>
                      <td class="table1_w2 my-select-box">
                        <el-form-item prop="a0128">
                          <el-input v-model="person.a0128" class="borderNone" size="small" :disabled="true"
                                    :readonly="true"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr>
                      <td class="tdBg lh18 textAlign">专业技<br>术职务</td>
                      <td colspan="2">
                        <el-form-item prop="a0196">
                          <el-input v-model="person.a0196" class="borderNone" size="small"
                                    :readonly="true" @click.native="openZhuanyejishu(person.a0184,'专业技术职务')"/>
                        </el-form-item>
                      </td>
                      <td class="tdBg lh18 textAlign">熟悉专业<br>有何特长</td>
                      <td colspan="2">
                        <el-form-item prop="a0187a">
                          <el-input v-model="person.a0187a" class="borderNone" size="small" :disabled="true"
                                    :readonly="true"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr>
                      <td class="tdBg textAlign" rowspan="4">学 历<br>学 位</td>
                      <td class="tdBg textAlign" rowspan="2">全日制<br>教&nbsp;&nbsp;&nbsp;育</td>
                      <td class="height35" colspan="2" style="overflow: hidden">
                        <el-form-item prop="qrzxl">
                          <el-input v-model="person.qrzxl" class="borderNone" :description.sync="person.qrzxw"
                                    size="small"
                                    :readonly="true" @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                      <td class="tdBg textAlign" rowspan="2">学历学校<br>学位学校</td>
                      <td class="height35" colspan="2">
                        <el-form-item prop="qrzxlxx">
                          <el-input v-model="person.qrzxlxx" class="borderNone" size="small"
                                    :readonly="true" @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr>
                      <td class="height35" colspan="2" style="overflow: hidden">
                        <el-form-item prop="qrzxw">
                          <el-input v-model="person.qrzxw" class="borderNone" :description.sync="person.fullDegreedesc"
                                    size="small" :readonly="true"
                                    @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                      <td class="height35" colspan="2">
                        <el-form-item prop="qrzxwxx">
                          <el-input v-model="person.qrzxwxx" class="borderNone" size="small"
                                    :readonly="true" @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr>
                      <td class="tdBg textAlign" rowspan="2">在&nbsp;&nbsp;&nbsp;职<br>教&nbsp;&nbsp;&nbsp;育</td>
                      <td class="height35" colspan="2" style="overflow: hidden">
                        <el-form-item prop="zzxl">
                          <el-input v-model="person.zzxl" class="borderNone" :description.sync="person.zzxw"
                                    size="small"
                                    :readonly="true" @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                      <td class="tdBg textAlign" rowspan="2">毕业院校<br>系及专业</td>
                      <td class="height35" colspan="2" style="overflow: hidden">
                        <el-form-item prop="zzxlxx">
                          <el-input v-model="person.zzxlxx" class="borderNone" size="small"
                                    :readonly="true" @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr>
                      <td class="height35" colspan="2" style="overflow: hidden">
                        <el-form-item prop="zzxw">
                          <el-input v-model="person.zzxw" class="borderNone" :description.sync="person.zzxl"
                                    size="small"
                                    :readonly="true" @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                      <td class="height35" colspan="2">
                        <el-form-item prop="zzxwxx">
                          <el-input v-model="person.zzxwxx" class="borderNone" size="small"
                                    :readonly="true" @click.native="openXlShow(person.a0184)"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr/>
                    <tr>
                      <td class="tdBg height35 textAlign">人选类型</td>
                      <td class="formValue" colspan="12" style="padding-left: 10px" align="left">
                        <el-checkbox-group v-model="checkList">
                          <!--                    $event代表，事件原先的参数    -->
                          <el-checkbox :disabled="!itemList.includes('AS0180')" disabled
                                       @change="checkBoxSelectionChange($event,'优秀女干部')"
                                       label="优秀女干部"/>
                          <el-checkbox :disabled="!itemList.includes('AS0119')" disabled
                                       @change="checkBoxSelectionChange($event,'优秀年轻干部')"
                                       label="优秀年轻干部"/>
                          <el-checkbox :disabled="!itemList.includes('AS0181')" disabled
                                       @change="checkBoxSelectionChange($event,'优秀少数民族干部')" label="优秀少数民族干部"/>
                          <el-checkbox :disabled="!itemList.includes('AS0182')" disabled
                                       @change="checkBoxSelectionChange($event,'优秀党外干部')"
                                       label="优秀党外干部"/>
                          <el-checkbox :disabled="!itemList.includes('AS0106')" @change="checkBoxSelectionChange($event,'归侨侨眷')"
                                       label="归侨侨眷"/>
                        </el-checkbox-group>
                      </td>
                    </tr>
                    <tr>
                      <td class="tdBg  textAlign">工 作<br>单 位<br>及职务</td>
                      <td colspan="3" style="overflow: hidden">
                        <!--<el-form-item prop="a0196">
                          <el-input v-model="person.a0196" type="textarea"  resize="none" size="small" :disabled="true" :readonly="true" />
                        </el-form-item>-->
                        <!--<el-input  type="textarea" v-model="person.a0192a" name="jqpyfx" style="width : 100%;resize: none;border: none"
                                  rows="4"  maxlength="500" class="form-control "
                                  />-->
                        <el-input v-model="person.a0192a" type="textarea" name="jqpyfx" resize="none" class="form2Resume"
                                  :readonly="true" @click.native="openZw(person.a0184)"/>
                      </td>
                      <td class="tdBg textAlign">职 务<br>具 体<br>类 别</td>
                      <td class="formValue" colspan="3">
                        <!--                    <textarea v-model="zwjtlb" name="jqpyfx" style="width : 100%;resize: none;border: none" rows="4"-->
                        <!--                              :readonly="true" :disabled="true" maxlength="500" class="form-control "/>-->
                        <el-form-item prop="zwjtlb">
                          <el-input v-model="zwjtlb" type="textarea" resize="none" class="form2Resume"
                                    :disabled="true" :readonly="true"/>
                        </el-form-item>
                      </td>
  
                    </tr>
                    <tr>
                      <td class="tdBg textAlign" rowspan="2">人 事<br>关 系<br>所 在<br>单 位</td>
                      <td class="tdBg lh18 textAlign" colspan="1">具 体<br>单 位</td>
                      <td colspan="2">
                        <el-form-item prop="A0137">
                          <el-input :readonly="true" :disabled="true" v-model="person.A0137A" class="borderNone"
                                    size="small"
                                    @click.native="openTreeDept('AG0128','BJ610')"/>
                        </el-form-item>
                      </td>
                      <td class="tdBg lh18 textAlign" colspan="1">单 位<br>类 型</td>
                      <td colspan="2">
                        <el-form-item prop="AG0138">
                          <el-input :disabled="!itemList.includes('AG0138')" maxlength="32" v-model="person.AG0138"
                                    class="borderNone"
                                    size="small"/>
                        </el-form-item>
                      </td>
                    </tr>
                    <tr>
                      <td class="formValue" colspan="12" style="padding-left: 10px" align="left">
                        <el-checkbox-group :disabled="!itemList.includes('AG0139')" v-model="person.AG0139">
                          <el-checkbox label="">省管干部</el-checkbox>
                        </el-checkbox-group>
                      </td>
                    </tr>
                    <tr>
                      <td class="tdBg  textAlign" style="height: 120px;">职 务<br>层 次</td>
                      <td colspan="3">
                        <div style="margin-top: 10px">
                          <div style="float: left;width: 140px;height: 40px;text-align: right;padding-top: 10px">职务层次
                          </div>
                          <div style="float: left;margin-left: 10px">
                            <el-input :disabled="true" maxlength="32" v-model="person.a0221"
                                      class="borderNone"
                                      size="small"/>
                            <!--                          <el-select :disabled="!itemList.includes('AG0140')" v-model="person.AG0140"-->
                            <!--                                     placeholder="请选择" clearable-->
                            <!--                                     style="width: 300px" size="small">-->
                            <!--                            <el-option-->
                            <!--                              v-for="item in itemCodeList.zb09_nqgbNew"-->
                            <!--                              :key="item.value"-->
                            <!--                              :label="item.label"-->
                            <!--                              :value="item.value"-->
                            <!--                            />-->
                            <!--                          </el-select>-->
                          </div>
                        </div>
                        <div style="margin-top: 60px">
                          <div style="float: left;width: 140px;height: 40px;text-align: right;padding-top: 10px">现职级
                          </div>
                          <div style="float: left;margin-left: 10px">
                            <el-input :disabled="true" maxlength="32" v-model="person.a0192e"
                                      class="borderNone"
                                      size="small"/>
                            <!--                          <el-select :disabled="!itemList.includes('AG0141')" v-model="person.AG0141"-->
                            <!--                                     placeholder="请选择"-->
                            <!--                                     style="width: 300px;" size="small">-->
                            <!--                            <el-option-->
                            <!--                              v-for="item in itemCodeList.ZB09_ZHGL"-->
                            <!--                              :key="item.value"-->
                            <!--                              :label="item.label"-->
                            <!--                              :value="item.value"-->
                            <!--                            />-->
                            <!--                          </el-select>-->
                          </div>
                        </div>
                      </td>
                      <td class="tdBg textAlign">事业单位<br>岗位等级</td>
                      <td colspan="3">
                        <el-input type="textarea" :disabled="!itemList.includes('AG0142')" v-model="person.AG0142A"
                                  name="jqpyfx"
                                  style="width : 100%;height: 100px;resize: none;border: none" rows="4" :readonly="true"
                                  maxlength="500" class="form-control "
                                  @click.native="openTopTree('ZB09_NQGB','事业单位岗位等级')"/>
                      </td>
                    </tr>
                    <tr class="height320" style="border-top: 1px">
                      <td class="tdBg jianli_td lh18 textAlign"
                          style=" border-right: 2px solid #dcdfe6; border-bottom: 2px solid #dcdfe6;">
                        <br>简<br>历
                      </td>
  
                      <td colspan="6">
                        <el-form ref="inServForm" :model="inServForm" label-width="0px" size="small">
                          <el-form-item prop="servin">
  
                            <!--<el-button type="primary" @click="addRow(infiledList)">新增简历</el-button>-->
                            <!--                        暂时停用-->
                            <!--                        <el-button :disabled="!itemList.includes('AG0122')" type="primary" @click="addCheck(infiledList)">生成</el-button>-->
                            <!--                        <el-button v-else disabled type="primary">生成</el-button>-->
  
                            <el-table v-model="officeTime" border :data="infiledList" style="width: 100%">
  
                              <!--<el-table-column :width="columnOtherWidth" label="复选">
                                <template slot-scope="scope">
                                  <el-checkbox v-model="scope.row.isCheck"/>
                                </template>
                              </el-table-column>-->
  
                              <el-table-column prop="A8801" :width="columnTimeWidth" label="开始时间">
                                <template scope="scope">
                                  <el-date-picker
                                    v-model="scope.row.A8801"
                                    type="month"
                                    value-format="yyyy-MM-dd"
                                    format="yyyy.MM"
                                    style="width: 100%"
                                    class="borderNone"
                                    :disabled="true"
                                    :readonly="true"
                                  />
                                  <!--                              <el-input v-model="stratTime" size="mini" />-->
                                </template>
                              </el-table-column>
                              <el-table-column prop="A8802" :width="columnTimeWidth" label="截止时间">
                                <template scope="scope">
                                  <el-date-picker
                                    v-model="scope.row.A8802"
                                    type="month"
                                    value-format="yyyy-MM-dd"
                                    format="yyyy.MM"
                                    style="width: 100%"
                                    class="borderNone"
                                    :disabled="true"
                                    :readonly="true"
  
                                  />
                                  <!--                              <el-input v-model="stopTime" size="mini" />-->
                                </template>
                              </el-table-column>
                              <el-table-column prop="A8803" label="简历信息">
                                <template scope="scope">
                                  <el-input style="white-space: pre-line" type="textarea"  autosize :disabled="true" :readonly="true"
                                            v-model="scope.row.A8803" class="borderNone" size="mini"/>
                                </template>
                              </el-table-column>
                              <!--<el-table-column prop="AS8804A" label="任重要职务、重要经历标识">
                                <template scope="scope">
                                  <el-input :disabled="!itemList.includes('AS8804')" v-model="scope.row.AS8804A" size="mini"
                                            @click.native="openTree('AS8804','SD04',scope.$index,'任重要职务、重要经历标识')"/>
                                </template>
  
                              </el-table-column>
                              <el-table-column prop="officeTime" label="任职年限">
                                <template scope="scope">
                                  <el-input v-model="scope.row.AS8806" :disabled="!itemList.includes('AS8806')"
                                            :disabled="!itemList.includes('AS8806')"
                                            :readonly="!itemList.includes('AS8806')" type="text" size="mini"/>
                                </template>
                              </el-table-column>
                              <el-table-column prop="AS8807" label="任重要职务、重要经历标识说明">
                                <template scope="scope">
                                  <el-input :disabled="!itemList.includes('AS8807')" :disabled="!itemList.includes('AS8807')"
                                            :readonly="!itemList.includes('AS8807')" v-model="scope.row.AS8807"
                                            size="mini"/>
                                </template>
  
                              </el-table-column>
                              <el-table-column prop="AS8808A" label="工作经历细项">
  
                                <template scope="scope">
                                  <el-input :disabled="!itemList.includes('AS8808')" v-model="scope.row.AS8808A"
                                            :disabled="!itemList.includes('AS8808')"
                                            :readonly="!itemList.includes('AS8808')" size="mini"
                                            @click.native="openTree('AS8808','SD05',scope.$index,'工作经历细项')"/>
                                </template>
                              </el-table-column>
                              <el-table-column prop="officeTime" label="经历年限">
                                <template scope="scope">
                                  <el-input :disabled="!itemList.includes('AS8810')" v-model="scope.row.AS8810"
                                            :disabled="!itemList.includes('AS8810')"
                                            :readonly="!itemList.includes('AS8810')" type="text" size="mini"/>
                                </template>
                              </el-table-column>
                              <el-table-column prop="A8803" label="职务层次">
                                <template scope="scope">
                                  <qz-inputcode
                                    v-model="scope.row.AS8811"
                                    :codeid="'ZB09-职务层次'"
                                    :description.sync="scope.row.AS8811A"
                                    :auto-translate="true"
                                    class="borderNone"
                                    size="small"
                                    :disabled="!itemList.includes('AS8811')"
                                    :readonly="!itemList.includes('AS8811')"
                                    :disabled="!itemList.includes('AS8811')"
                                  />
                                </template>
  
                              </el-table-column>-->
                              <!--                          <el-table-column fixed="right" label="操作">-->
                              <!--                            <template slot-scope="scope">-->
                              <!--                              <el-button size="small" @click.native.prevent="deleteRow(scope.$index, infiledList)"> 移除 </el-button>-->
                              <!--                            </template>-->
                              <!--                          </el-table-column>-->
                            </el-table>
                            <!--                        </template>-->
                          </el-form-item>
                        </el-form>
                        <template>
                          <div class="block" style="margin-left: 40px">
                            <span class="demonstration">任乡科级副职（相当）时间</span>
                            <el-date-picker
                              v-model="person.AG0504F"
                              type="date"
                              style="margin-left: 10px"
                              placeholder="选择日期"
                              :disabled="!itemList.includes('AG0504F')"
                              format="yyyy.MM"
                            />
                            <span class="demonstration" style="margin-left:60px">任乡科级正职（相当）时间</span>
                            <el-date-picker
                              v-model="person.AG0504G"
                              type="date"
                              style="margin-left: 10px"
                              placeholder="选择日期"
                              :disabled="!itemList.includes('AG0504G')"
                              format="yyyy.MM"
                            />
                          </div>
                          <div class="block" style="margin-left: 40px">
                            <span class="demonstration">任县处级副职（相当）时间</span>
                            <el-date-picker
                              v-model="person.AG0504A"
                              type="date"
                              style="margin-left: 10px"
                              placeholder="选择日期"
                              :disabled="!itemList.includes('AG0504A')"
                              format="yyyy.MM"
                            />
                            <span class="demonstration" style="margin-left:60px">任县处级正职（相当）时间</span>
                            <el-date-picker
                              v-model="person.AG0504B"
                              type="date"
                              style="margin-left: 10px"
                              placeholder="选择日期"
                              :disabled="!itemList.includes('AG0504B')"
                              format="yyyy.MM"
                            />
                          </div>
                          <div class="block" style="margin-left: 40px">
                            <span class="demonstration">任厅局级副职（相当）时间</span>
                            <el-date-picker
                              v-model="person.AG0504C"
                              type="date"
                              style="margin-left: 10px"
                              placeholder="选择日期"
                              :disabled="!itemList.includes('AG0504C')"
                              format="yyyy.MM"
                            />
                            <span class="demonstration" style="margin-left:60px">任厅局级正职（相当）时间</span>
                            <el-date-picker
                              v-model="person.AG0504D"
                              type="date"
                              style="margin-left: 10px"
                              placeholder="选择日期"
                              :disabled="!itemList.includes('AG0504D')"
                              format="yyyy.MM"
                            />
                          </div>
                          <div class="block" style="margin-left: 130px">
                            <span class="demonstration">任现职时间</span>
                            <el-date-picker
                              v-model="person.A0191"
                              type="date"
                              style="margin-left: 10px"
                              placeholder="选择日期"
                              :disabled="true"
                              :readonly="true"
                              class="borderNone"
                              format="yyyy.MM"
                            />
                          </div>
                        </template>
                      </td>
                    </tr>
                    <template v-if="other_loading">
                      <tr style="text-align: center;margin: 10px auto;border: 1px saddlebrown solid">
                        <td colspan="13">
                          <el-button type="primary" style="margin: 0px auto" @click="other_loading=false">&nbsp;&nbsp;&nbsp;加载其他信息&nbsp;&nbsp;&nbsp;</el-button>
                        </td>
                      </tr>
                    </template>
                    <template v-else>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          历任主要职务
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0122')"
                                    v-model="person.AG0122"
                                    :readonly="!itemList.includes('AG0122')" name="jqpyfx"
                                    style="border: none;width : 100%;resize: none " rows="4" maxlength="500"
                                    class="form-control "/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          历任重要职务重要经历标识
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0120')" v-model="person.AG0120A"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none" rows="4" maxlength="500"
                                    class="form-control " @click.native="openTree('AG0120','BJ608','','任重要职务、重要经历标识')"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          工作经历细项
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0121')"
                                    v-model="person.AG0121A"
                                    name="jqpyfx" style="border: none;width :100%; height: 120px;resize: none" rows="4"
                                    maxlength="500" class="form2Resume"
                                    @click.native="openTree('AG0121','SD05','','工作经历细项')"/>
                        </td>
                      </tr>
                      <tr class="height140">
                        <td class="table1_w1 tdBg textAlign">奖惩情况</td>
                        <td colspan="6">
                          <el-form-item prop="rewardPunishment">
                            <el-input v-model="person.a14z101" style="border: none;width :100%;resize: none"
                                      type="textarea"
                                      resize="none" class="form2Resume"
                                      :disabled="true" :readonly="true"/>
                          </el-form-item>
                          <el-checkbox-group :disabled="!itemList.includes('AG0161')" v-model="checkAG0161Key"
                                              @change="checkAG0161">
                            <el-checkbox v-for="item in checkAG0161List" :label="item.value">{{ item.label }}
                            </el-checkbox>
                          </el-checkbox-group>
                        </td>
                      </tr>
                      <!-- <tr>
                        <td class="tdBg height35 textAlign" />
                        <td class="formValue" colspan="6" style="padding-left: 10px" align="left">
                          <el-checkbox-group v-model="checkAwardList">
                            <el-checkbox :disabled="!itemList.includes('AG0114')" label="获得省部级及以上奖励" />
                            <el-checkbox v-else disabled="true" label="获得省部级及以上奖励" />
                            <el-checkbox :disabled="!itemList.includes('AG0115')" label="全国优秀共产党员" />
                            <el-checkbox v-else disabled="true" label="全国优秀共产党员" />
                            <el-checkbox :disabled="!itemList.includes('AG0116')" label="全国优秀党务工作者" />
                            <el-checkbox v-else disabled="true" label="全国优秀党务工作者" />
                            <el-checkbox :disabled="!itemList.includes('AG0117')" label="全国优秀县委书记" />
                            <el-checkbox v-else disabled="true" label="全国优秀县委书记" />
                            <el-checkbox :disabled="!itemList.includes('AG0118')" label="全国劳动模范" />
                            <el-checkbox v-else disabled="true" label="全国劳动模范" />
                          </el-checkbox-group>
                        </td>
                      </tr>-->
                      <!--<tr class="height140">
                        <td class="table1_w1 tdBg textAlign">年度<br>考核<br>结果</td>
                        <td colspan="6">
                          <el-form-item prop="assessResult">
                            <el-input v-model="person.a15z101" type="textarea" class="form2Resume" :disabled="false" @click.native="openAuditShow(person.a0184)" />
                          </el-form-item>
                        </td>
                      </tr>-->
                      <tr>
                        <td class="table1_w1 tdBg textAlign">年度<br>考核<br>结果</td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" v-model="person.a15z101" name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="true" rows="4" maxlength="500" class="form-control "
                                    @click.native="openAuditShow(person.a0184)"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          实践锻炼
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0128')" v-model="person.AG0128A"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none" :readonly="true" rows="4"
                                    maxlength="500"
                                    class="form-control " @click.native="openTree('AG0128','BJ610','','实践锻炼')"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          培训情况
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0143')"
                                    id="pxqk"
                                    v-model="person.AG0143"
                                    name="pxqk"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="true"
                                    rows="4"
                                    maxlength="500"
                                    class="form-control "
                                    @click.native="opentrainAdd(person.a0000,person.a0184)"
                          />
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          考察情况
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0144')" v-model="person.AG0144"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none" :readonly="true" rows="4"
                                    maxlength="500"
                                    class="form-control " @click.native="openAG0144(person.a0000,person.a0184)"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          交流情况
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0129')" v-model="person.AG0129"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none" :readonly="true" rows="4"
                                    maxlength="500"
                                    class="form-control " @click.native="openAG0129(person.a0000,person.a0184)"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          援派挂职
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea"
                                    :disabled="!itemList.includes('AG0130')"
                                    id="ypgz"
                                    v-model="person.AG0130"
                                    name="ypgz"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="true"
                                    rows="4"
                                    maxlength="500"
                                    class="form-control "
                                    @click.native="openYpgzShow(person.a0000,person.a0184)"
                          />
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          个人有关事项
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0131')" v-model="person.AG0131"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none" :readonly="true" rows="4"
                                    maxlength="500"
                                    class="form-control " @click.native="openAG0131(person.a0184)"/>
                        </td>
                      </tr>
                      <!--<tr>
                        <td class="tdBg height35 textAlign">
                          实践锻炼
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <textarea id="jqpyfx" v-model="person.AG0128A" name="jqpyfx" style="width : 100%;" :readonly="true" rows="4" maxlength="500" class="form-control " />
                        </td>
                      </tr>-->
  
                      <!--培训情况-->
                      <tr>
                        <td class="tdBg height35 textAlign">
                          党纪政务处分及责任追究
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0132')"
                                    id="djzr"
                                    v-model="person.AG0132"
                                    name="djzr"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="true"
                                    rows="4"
                                    maxlength="500"
                                    class="form-control "
                                    @click.native="openDjzrShow(person.a0184)"
                          />
                        </td>
                      </tr>
                      <!--                <tr v-else>-->
                      <!--                  <td class="tdBg height35 textAlign">-->
                      <!--                    培训情况-->
                      <!--                  </td>-->
                      <!--                  <td class="formValue" colspan="12" align="left">-->
                      <!--                    <textarea id="jqpyfx" v-model="person.A89" name="jqpyfx" style="width : 100%;" :readonly="true" rows="4" maxlength="500" class="form-control " />-->
                      <!--                  </td>-->
                      <!--                </tr>-->
                      <tr>
                        <td class="tdBg height35 textAlign">
                          人 选<br>类 别
                        </td>
                        <td class="formValue" style="text-align: center;height: 60px" colspan="3">
                          <!--                        <el-select :disabled="!itemList.includes('AG0124')"-->
                          <!--                                   v-model="person.AG0124" placeholder="请选择" style="width: 300px" size="small">-->
                          <!--                          <el-option-->
                          <!--                            v-for="item in itemCodeList.BJ251"-->
                          <!--                            :key="item.value"-->
                          <!--                            :label="item.label"-->
                          <!--                            :value="item.value"-->
                          <!--                          />-->
                          <!--                        </el-select>-->
                          <el-select :disabled="!itemList.includes('AG0124')"
                                     v-model="person.AG0124" placeholder="请选择" style="width: 300px" size="small">
                            <el-option
                              v-for="item in itemCodeList.SD16"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value"
                            />
                          </el-select>
                        </td>
                        <td colspan="3" style="text-align: center">
                          <el-checkbox-group  :disabled="!itemList.includes('AG2501B')"
                                              v-model="checkAG2501BList" @change="bindCheckBox">
                            <el-checkbox label="1">可近期关注</el-checkbox>
                            <el-checkbox label="2">有培养潜力</el-checkbox>
                          </el-checkbox-group>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          推荐单位
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0125')" v-model="person.AG0125"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="!itemList.includes('AG0125')"
                                    rows="4" maxlength="50" class="form-control "/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          近期培养方向
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0126')" v-model="person.AG0126A"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="!itemList.includes('AG0126')"
                                    rows="4" maxlength="500" class="form-control "
                                    @click.native="openTree('AG0126','BJ259','','近期培养方向')"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          培养措施
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0127')" v-model="person.AG0127A"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="!itemList.includes('AG0127')"
                                    rows="4" maxlength="500" class="form-control "
                                    @click.native="openTree('AG0127','BJ112','','培养措施')"/>
                          备注：
                          <el-input :readonly="!itemList.includes('AG0127B')" maxlength="100" v-model="person.AG0127B"
                                    style="width: 95%"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          行为特<br>征与个<br>性特点
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0150')" v-model="person.AG0150A"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="!itemList.includes('AG0150')"
                                    rows="4" maxlength="500" class="form-control "
                                    @click.native="openTree('AG0150','BJ262','','行为特征与个性特点')"/>
                          备注：
                          <el-input :readonly="!itemList.includes('AG0150B')" maxlength="100" v-model="person.AG0150B"
                                    style="width: 95%"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg  textAlign">
                          简 要<br>评 价
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0133')"
                                    :readonly="!itemList.includes('AG0133')"
                                    v-model="person.AG0133" name="jqpyfx" style="border: none;width : 100%;resize: none"
                                    rows="4" maxlength="125" class="form-control "/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg  textAlign">
                          评 价<br>材 料
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0134')" v-model="person.AG0134"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="!itemList.includes('AG0134')"
                                    rows="4" maxlength="125" class="form-control "/>
                        </td>
                      </tr>
                      <!--<tr>
                        <td class="tdBg height35 textAlign">
                          熟悉领域
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <textarea id="jqpyfx" v-model="person.AG0108A" name="jqpyfx" style="border: none;width : 100%;resize: none" :readonly="true" rows="4" maxlength="500" class="form-control " />
                        </td>
                      </tr>-->
                      <tr>
                        <td class="tdBg height35 textAlign">
                          熟悉领域
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0108')" v-model="person.AG0108A"
                                    name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="!itemList.includes('AG0108')"
                                    rows="4" maxlength="500" class="form-control "
                                    @click.native="openTree('AG0108','BJ258','','熟悉领域')"/><!-- ,'SD01'-->
                          备注：
                          <el-input v-model="person.AG0108B" maxlength="100" :readonly="!itemList.includes('AG0108B')"
                                    style="width: 95%"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          风格类型
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0110')"
                                    v-model="person.AG0110A" name="jqpyfx"
                                    style="border: none;width : 100%;resize: none"
                                    :readonly="!itemList.includes('AG0110')"
                                    rows="4" maxlength="500" class="form-control "
                                    @click.native="openTree('AG0110','SD02','','风格类型')"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          性格特征
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0112')"
                                    v-model="person.AG0112A" name="jqpyfx"
                                    style="border: none;width : 100%;resize: none" rows="4" :readonly="true"
                                    maxlength="500"
                                    class="form-control " @click.native="openTree('AG0112','SD03','','性格特征')"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          观点具体事例
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AS0175')" v-model="person.AS0175"
                                    style="border: none;width : 100%;resize: none" rows="4" :readonly="true"
                                    maxlength="500"
                                    class="form-control " @click.native="openGDJTSLShow(person.a0184)"/>
                        </td>
                      </tr>
  
                      <!--家庭成员-->
                      <tr class="height320" style="border-top: 1px">
                        <td class="tdBg jianli_td lh18 textAlign">
                          <br>家<br>庭<br>主<br>要<br>成<br>员<br>及<br>重<br>要<br>社<br>会<br>关<br>系<br>
                        </td>
                        <td colspan="6">
                          <el-form size="small">
                            <el-form-item>
                              <el-table border :data="person.a36s" style="width: 100%">
                                <el-table-column prop="a3604a" width="100" label="称谓">
                                  <template scope="scope">
                                    <el-input class="borderNone" v-model="scope.row.a3604a" size="mini" :disabled="true"/>
                                  </template>
                                </el-table-column>
                                <el-table-column prop="name" width="100" label="姓名">
                                  <template scope="scope">
                                    <el-input class="borderNone" v-model="scope.row.a3601" size="mini" :disabled="true"
                                              :readonly="true"/>
                                  </template>
                                </el-table-column>
                                <el-table-column prop="birthDate" label="出生日期" width="100">
                                  <template scope="scope">
                                    <!--<el-input class="borderNone" v-model="scope.row.a3607" :disabled="true" size="mini"
                                              :readonly="true"  />-->
                                    <el-date-picker
  
                                      v-model="scope.row.a3607"
                                      type="date"
                                      value-format="yyyy-MM-dd"
                                      format="yyyy.MM"
                                      class="borderNone"
                                      :disabled="true"
                                      :readonly="true"
  
                                      size="mini"
                                    />
                                  </template>
  
                                </el-table-column>
  
                                <el-table-column prop="policitalStatus" width="100" label="政治面貌">
                                  <template scope="scope">
                                    <el-input class="borderNone" v-model="scope.row.a3627" size="mini" :disabled="true"
                                              :readonly="true"/>
                                  </template>
                                </el-table-column>
                                <el-table-column prop="a3611" width="180" label="工作单位及职务">
                                  <template scope="scope">
                                    <el-input style="white-space: pre-line" type="textarea"  autosize class="borderNone" v-model="scope.row.a3611" :readonly="true"
                                              :disabled="true"
                                              size="mini"/>
                                  </template>
                                </el-table-column>
                                <el-table-column prop="ag3692" width="180" label="身份证号">
                                  <template scope="scope">
                                    <el-input class="borderNone"
                                              v-model="scope.row.ag3692"
                                              :readonly="true"
                                              :disabled="true" type="text" size="mini"/>
                                  </template>
                                </el-table-column>
                                <el-table-column label="职务层次" width="120">
                                  <template scope="scope" prop="ag3685">
                                    <el-select :disabled="!itemList.includes('AG3685')" v-model="scope.row.ag3685"
                                               :readonly="!itemList.includes('AG3685')" placeholder="请选择" size="small">
                                      <el-option
                                        v-for="item in itemCodeList.ZB09_New"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value"
                                      />
                                    </el-select>
                                  </template>
                                </el-table-column>
  
                                <el-table-column prop="ag3686" label="职级" width="180">
                                  <template scope="scope">
                                    <el-select :disabled="!itemList.includes('AG3686')" v-model="scope.row.ag3686"
                                               :readonly="!itemList.includes('AG3686')" placeholder="请选择" size="small">
                                      <el-option
                                        v-for="item in itemCodeList.ZB09_ZHGL"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value"
                                      />
                                    </el-select>
                                  </template>
                                </el-table-column>
                                <el-table-column label="移居国（境）外">
                                  <template scope="scope">
                                    <!--<el-input :disabled="!itemList.includes('AG3687')" type="text"
                                              :readonly="!itemList.includes('AG3687')" size="mini"
                                              @click.native="openMove(scope.row)"/>-->
  
                                    <el-button :disabled="!itemList.includes('AG3687')" :readonly="!itemList.includes('AG3687')"
                                               variant="outline-primary" icon="el-icon-arrow-down" class="d-block"
                                               @click="openMove(scope.row)">
                                    </el-button>
                                  </template>
                                </el-table-column>
                              </el-table>
                              <div style="margin-top: 10px">
                                <div style="float: left;width: 140px;height: 40px;text-align: right;">婚姻状况</div>
                                <div style="float: left;margin-left: 10px">
                                  <el-select v-model="person.AG0135"
                                             :disabled="!itemList.includes('AG0135')" placeholder="请选择"
                                             style="width: 300px"
                                             size="small">
                                    <el-option
                                      v-for="item in itemCodeList.GB22612"
                                      :key="item.value"
                                      :label="item.label"
                                      :value="item.value"
                                    />
                                  </el-select>
                                </div>
                              </div>
                              <div style="margin-top: 60px">
                                <div style="float: left;width: 120px;height: 40px;text-align: right;padding: 10px">备注
                                </div>
                                <div style="float: left;margin-left: 10px">
                                  <el-input type="textarea" :disabled="!itemList.includes('AG0152')"
                                            v-model="person.AG0152"
                                            name="jqpyfx"
                                            style="width : 900px;resize: none" rows="4" maxlength="500"
                                            class="form-control "/>
                                </div>
                              </div>
                            </el-form-item>
                          </el-form>
                        </td>
                      </tr>
                      <tr>
                        <td class="table1_w6 tdBg height35 textAlign">身份证号</td>
                        <td class="table1_w6" colspan="6">
                          <el-form-item prop="idNumber">
                            <el-input v-model="person.a0184" class="borderNone" size="small" :disabled="true"
                                      :readonly="true"/>
                          </el-form-item>
                        </td>
                      </tr>
                      <!--<tr>
                        <td class="tdBg height35 textAlign">
                          认定
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <textarea id="jqpyfx" name="jqpyfx" style="width : 100%;" onclick="firmlyBelieve()" rows="4" maxlength="500" class="form-control " />
                        </td>
                      </tr>-->
  
                      <tr>
                        <td class="table1_w6 tdBg height35 textAlign">
                          选调生
                        </td>
                        <td class="formValue" colspan="1" style="padding-left: 10px" align="left">
                          <el-checkbox v-model="isStudent" :disabled="true">选调生
                          </el-checkbox>
                        </td>
                        <td class="table1_w1 tdBg textAlign">
                          选调层次及选调工作单位
                        </td>
                        <td class="formValue" colspan="2" style="padding-left: 20px" align="left">
                          <el-radio-group v-if="isStudent && itemList.includes('AS0170')" v-model="person.AS0170">
                            <template v-for="item in itemCodeList.SD13">
                              <el-radio :label="item.value">{{ item.label }}</el-radio>
                            </template>
                          </el-radio-group>
                          <el-input style="margin-top: 10px" v-if="isStudent && itemList.includes('AS0171')"
                                    v-model="person.AS0171" size="small" placeholder="请输入选调后工作单位"/>
                        </td>
                        <td class="table1_w1 tdBg textAlign" colspan="1">
                          选调时间
                        </td>
                        <td class="formValue" colspan="2" align="left">
                          <el-date-picker
                            v-if="isStudent "
                            v-model="person.A0169"
                            :disabled="true"
                            type="date"
                            style="width: 100%"
                            placeholder="选择日期"
                            value-format="yyyy-MM-dd"
                            format="yyyy.MM"
                          />
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign" rowspan="6">
                          四 必<br>核 查
                        </td>
                        <td class="textAlign">核查内容</td>
                        <td class="textAlign">已核查</td>
                        <td class="textAlign" colspan="2">核查结果</td>
                        <td class="textAlign" colspan="2">需要说明情况</td>
  
                      </tr>
                      <tr>
                        <td class="textAlign">干部人事档案</td>
                        <td class="textAlign">
                          <el-checkbox-group :disabled="!itemList.includes('AG0153')" v-model="person.AG0153"
                                             :disable="!itemList.includes('AG0153')" :checked="clearableNum(1)">
                            <el-checkbox label=""/>
                          </el-checkbox-group>
                        </td>
                        <td class="textAlign" colspan="2">
                          <el-select v-model="person.AG0154"
                                     :disabled="!person.AG0153" placeholder="请选择" style="width: 300px;"
                                     size="small">
                            <el-option
                              v-for="item in itemCodeList.BJ602"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value"
                            />
                          </el-select>
                        </td>
                        <td class="textAlign" colspan="2" style="overflow: hidden">
                          <div :disabled="!itemList.includes('AG0165')" style="width: 50%;float: left;padding-left: 5px">
                            <span @click="showFile(person.AG0165URL)"
                                  style="color:#0000FF;cursor: default;line-height:2.5">{{ person.AG0165 }}</span>
                          </div>
                          <div :disabled="!itemList.includes('AG0165')"
                               style="padding: 10px 10px 0px 0px;float: right;display:block">
                            <div style="float: left;">
                              <el-upload
                                :action="fileServerPath"
                                class="upload-demo"
                                :on-success="(response, file, fileList)=> FileUpload(response, file, fileList,1)"
                                accept=".doc,.docx,.pdf"
                                :show-file-list="false"
                                :multiple="false"
                              >
                                <!--                          <el-upload-->
                                <!--                            action="#"-->
                                <!--                            class="upload-demo"-->
                                <!--                            accept=".doc,.docx,.pdf"-->
                                <!--                            :show-file-list="false"-->
                                <!--                            :multiple="false"-->
                                <!--                            :http-request="newfileUpload"-->
                                <!--                            :file-list="fileList"-->
                                <!--                            :before-upload="beforeUpload"-->
                                <!--                            :data="1"-->
                                <!--                          >-->
                                <span style="color:#0000FF;cursor: default;">上传附件</span>
                              </el-upload>
                            </div>
                            <div style="float: left">
                              <span>（大小不超过10M）</span>
                            </div>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td class="textAlign">个人有关事项报告</td>
                        <td class="textAlign">
                          <el-checkbox-group :disabled="!itemList.includes('AG0155')" v-model="person.AG0155"
                                             :disable="!itemList.includes('AG0155')" :checked="clearableNum(2)">
                            <el-checkbox label=""/>
                          </el-checkbox-group>
                        </td>
                        <td class="textAlign" colspan="2">
                          <el-select  v-model="person.AG0156" placeholder="请选择"
                                     style="width: 300px;" size="small" :disabled="!person.AG0155">
                            <el-option
                              v-for="item in itemCodeList.BJ602"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value"
                            />
                          </el-select>
                        </td>
                        <td class="textAlign" colspan="2" style="overflow: hidden">
                          <!--                      <div v-if="itemList.includes('AG0162')"-->
                          <!--                           style="width: 50%;float: left;padding-left: 5px">-->
                          <!--                        <span @click="showFile(person.AG0162URL)" style="color:#0000FF;cursor: default;line-height:2.5">{{ person.AG0162 }}</span>-->
                          <!--                      </div>-->
                          <div :disabled="!itemList.includes('AG0162')" style="width: 50%;float: left;padding-left: 5px">
                            <span @click="showFile(person.AG0162URL)"
                                  style="color:#0000FF;cursor: default;line-height:2.5">{{ person.AG0162 }}</span>
                          </div>
                          <div :disabled="!itemList.includes('AG0162')"
                               style="padding: 10px 10px 0px 0px;height: 40px;float: right">
                            <div style="float: left;">
                              <el-upload
                                :action="fileServerPath"
                                class="upload-demo"
                                :on-success="(response, file, fileList)=> FileUpload(response, file, fileList,2)"
                                accept=".doc,.docx,.pdf"
                                :show-file-list="false"
                                :multiple="false"
                              >
                                <!--                          <el-upload-->
                                <!--                            action="#"-->
                                <!--                            class="upload-demo"-->
                                <!--                            accept=".doc,.docx,.pdf"-->
                                <!--                            :show-file-list="false"-->
                                <!--                            :multiple="false"-->
                                <!--                            :http-request="newfileUpload"-->
                                <!--                            :file-list="fileList"-->
                                <!--                            :before-upload="beforeUpload"-->
                                <!--                            :data="2"-->
                                <!--                          >-->
                                <span style="color:#0000FF;cursor: default;">上传附件</span>
                              </el-upload>
                            </div>
                            <div style="float: left">
                              <span>（大小不超过10M）</span>
                            </div>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td class="textAlign">纪检监察机关意见</td>
                        <td class="textAlign">
                          <el-checkbox-group :disabled="!itemList.includes('AG0157')" v-model="person.AG0157"
                                             :disable="!itemList.includes('AG0157')" :checked="clearableNum(3)">
                            <el-checkbox label=""/>
                          </el-checkbox-group>
                        </td>
                        <td class="textAlign" colspan="2">
                          <el-select  v-model="person.AG0158"
                                     :disabled="!person.AG0157" scope="scope" placeholder="请选择"
                                     style="width: 300px;" size="small">
                            <el-option
                              v-for="item in itemCodeList.BJ602"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value"
                            />
                          </el-select>
                        </td>
                        <td class="textAlign" colspan="2" style="overflow: hidden">
                          <div :disabled="!itemList.includes('AG0163')"
                               style="width: 50%;float: left;padding-left: 5px">
                            <span @click="showFile(person.AG0163URL)"
                                  style="color:#0000FF;cursor: default;line-height:2.5">{{ person.AG0163 }}</span>
                          </div>
                          <div :disabled="!itemList.includes('AG0163')"
                               style="padding: 10px 10px 0px 0px;height: 40px;float: right">
                            <div style="float: left;">
                              <el-upload
                                :action="fileServerPath"
                                class="upload-demo"
                                :on-success="(response, file, fileList)=> FileUpload(response, file, fileList,3)"
                                accept=".doc,.docx,.pdf"
                                :show-file-list="false"
                                :multiple="false"
                              >
                                <!--                          <el-upload-->
                                <!--                            action="#"-->
                                <!--                            class="upload-demo"-->
                                <!--                            accept=".doc,.docx,.pdf"-->
                                <!--                            :show-file-list="false"-->
                                <!--                            :multiple="false"-->
                                <!--                            :http-request="newfileUpload"-->
                                <!--                            :file-list="fileList"-->
                                <!--                            :before-upload="beforeUpload"-->
                                <!--                            :data="3"-->
                                <!--                          >-->
                                <span style="color:#0000FF;cursor: default;">上传附件</span>
                              </el-upload>
                            </div>
                            <div style="float: left">
                              <span>（大小不超过10M）</span>
                            </div>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td class="textAlign">有可查性的信访举报</td>
                        <td class="textAlign">
                          <el-checkbox-group :disabled="!itemList.includes('AG0159')" v-model="person.AG0159"
                                             :disable="!itemList.includes('AG0159')" :checked="clearableNum(4)">
                            <el-checkbox label=""/>
                          </el-checkbox-group>
                        </td>
                        <td class="textAlign" colspan="2">
                          <el-select  v-model="person.AG0160" placeholder="请选择"
                                     style="width: 300px;" size="small" :disabled="!person.AG0159">
                            <el-option
                              v-for="item in itemCodeList.BJ602"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value"
                            />
                          </el-select>
                        </td>
                        <td class="textAlign" colspan="2" style="overflow: hidden">
                          <div :disabled="!itemList.includes('AG0164')"
                               style="width: 50%;float: left;padding-left: 5px">
                            <span @click="showFile(person.AG0164URL)"
                                  style="color:#0000FF;cursor: default;line-height:2.5">{{ person.AG0164 }}</span>
                          </div>
                          <div :disabled="!itemList.includes('AG0164')"
                               style="padding: 10px 10px 0px 0px;height: 40px;float: right">
                            <div style="float: left;">
                              <!--  <el-upload
                                  action="#"
                                  class="upload-demo"
                                  accept=".doc,.docx,.pdf"
                                  :show-file-list="false"
                                  :multiple="false"
                                  :http-request="newfileUpload"
                                  :file-list="fileList"
                                  :before-upload="beforeUpload"
                                  :data="4"
                                >
                                  <span style="color:#0000FF;cursor: default;">上传附件</span>
                                </el-upload>-->
                              <el-upload
                                :action="fileServerPath"
                                class="upload-demo"
                                :on-success="(response, file, fileList)=> FileUpload(response, file, fileList,4)"
                                accept=".doc,.docx,.pdf"
                                :show-file-list="false"
                                :multiple="false"
                              >
                                <span style="color:#0000FF;cursor: default;">上传附件</span>
                              </el-upload>
                            </div>
                            <div style="float: left">
                              <span>（大小不超过10M）</span>
                            </div>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="6">
                          <div style="margin-top: 10px">
                            <div style="float: left;width: 100px;height: 40px;text-align: right;padding: 10px">未核查原因</div>
                            <div style="float: left;margin-left: 10px">
                              <el-input type="textarea" :disabled="!itemList.includes('AG0146')" v-model="person.AG0146"
                                        name="jqpyfx"
                                        style="width : 900px;resize: none" rows="4" maxlength="100"
                                        class="form-control "/>
                            </div>
                          </div>
                          <div style="margin-top: 120px">
                            <div style="float: left;width: 120px;height: 40px;text-align: right;padding-top: 10px">房产
                            </div>
                            <div style="float: left;margin-left: 10px">
                              <el-input oninput="if(value.length>4)value=value.slice(0,4)"
                                        :disabled="!itemList.includes('AG0147')"
                                        v-model="person.AG0147"/>
                            </div>
                            <div style="float: left;margin-left: 10px;height: 40px;padding-top: 10px">
                              套
                            </div>
                            <div style="float: left;width: 240px;height: 40px;text-align: right;padding-top: 10px">
                              股票基金等理财产品
                            </div>
                            <div style="float: left;margin-left: 10px">
                              <el-select :disabled="!itemList.includes('AG0148')" v-model="person.AG0148"
                                         placeholder="请选择" style="width: 300px;"
                                         size="small">
                                <el-option
                                  v-for="item in itemCodeList.BJ606"
                                  :key="item.value"
                                  :label="item.label"
                                  :value="item.value"
                                />
                              </el-select>
                            </div>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          入库信息<br>标 识
                        </td>
                        <td class="formValue" colspan="12" style="padding-left: 10px" :disabled="true" align="left">
                          <el-checkbox-group  :disabled="!itemList.includes('AG0194')"
                                             v-model="checkAG0194List" @change="bindCheckBox1">
                            <el-checkbox label="01">专题调研</el-checkbox>
                            <el-checkbox label="02">日常发现</el-checkbox>
                          </el-checkbox-group>
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          认定
                        </td>
                        <td class="formValue" colspan="12" align="left">
                          <el-input type="textarea" :disabled="!itemList.includes('AG0151')"
                                    id="rd"
                                    v-model="person.AG0151"
                                    name="rd"
                                    style="width : 100%;resize: none;border: none"
                                    :readonly="true"
                                    rows="4"
                                    maxlength="500"
                                    class="form-control "
                                    @click.native="openRdShow(person.a0184)"
                          />
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          出库原因
                        </td>
                        <td class="formValue" colspan="12" style="padding-left: 10px" :disabled="true" align="left">
                          <el-checkbox-group v-model="checkAG8701Key" @change="checkAG8701" :disabled="true">
                            <el-checkbox v-for="item in checkAG8701List" :label="item.value">{{ item.label }}
                            </el-checkbox>
                          </el-checkbox-group>
                          <!-- <el-checkbox-group
                             v-model="outWareList"
                             :disabled="true"
                             :min="0"
                             :max="1"
                           >
                             <el-checkbox v-for="city in cities" :key="city" :disabled="true" :label="city">{{ city }}
                             </el-checkbox>
                           </el-checkbox-group>-->
                        </td>
                      </tr>
                      <tr>
                        <td class="tdBg height35 textAlign">
                          出库时间
                        </td>
                        <td class="formValue" colspan="12" :disabled="true" align="left">
                          <el-date-picker
                            v-model="outWare.AG8702"
                            type="month"
                            value-format="yyyy-MM-dd"
                            format="yyyy.MM"
                            style="width: 100%"
                            class="borderNone"
                            :disabled="disabled"
                            :readonly="true"
                          />
                        </td>
                      </tr>
                    </template>
                    <!--<tr>
                      <td class="tdBg height35 textAlign">
                        其 他<br>标 识
                      </td>
                      <td class="formValue" colspan="12" align="left">
                        <textarea id="jqpyfx" v-model="person.AG0108A" name="jqpyfx" style="border: none;width : 100%;resize: none" :readonly="true" rows="4" maxlength="500" class="form-control " @click="openTree('AG0108','SD01')" />
                      </td>
                    </tr>-->
                    <!--                ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
                  </table>
                </div>
              </el-col>
            </el-row>
          </div>
        </el-form>
      </el-main>
  
      <template slot="footer" style="height:100px;">
        <!--      <el-upload
          style="float: left"
          class="upload-item"
          accept=".lrmx"
          :action="fileServerPath"
          :on-success="fileUpdate"
          :show-file-list="false"
          :multiple="false"
        >
          <el-button v-if="!disabled" type="success" @click="drrmb"><span class="fab fa-telegram-plane" />&nbsp;&nbsp;&nbsp;导入任免表
          </el-button>
        </el-upload>-->
  
        <el-button type="danger" @click="visible = false">取消
        </el-button>
        <el-button v-if="!disabled" :loading="loading" type="success" :disabled="buttonDisabled" @click="onSubmit">提交
        </el-button>
        <el-button type="primary" v-if="!disabled" :loading="loading" @click.native="downloadPersonInfo">导出</el-button>
        <el-button :loading="loading" @click.native="showGbhx">人员画像</el-button>
  
  
      </template>
  
      <itemTopTreeRmb v-if="showItemTopTreeRmb" ref="dialogItemTopTreeRmb" @reloadItemTopTreeRmb="initItemTopTreeRmb"/>
      <itemTreeRmb v-if="showItemTreeRmb" ref="dialogItemTreeRmb" @reloadItemTreeRmb="initItemTreeRmb"/>
      <institutionItemTree v-if="institutionItemTree" ref="institutionItemTree" @reloadItemTreeRmb="initItemTreeRmb"/>
      <showDeptTree v-if="showDeptTree" ref="dialogDeptTree" @setDepartmentInit="setDepartmentInit"/>
      <showgxhxIndex v-if="showgxhxIndex" ref="dialogDxhxIndex" @reloadItemTreeRmb="initItemTreeRmb"/>
      <gb-training v-if="showBasicTrain" ref="dialogBasicTrain" @reloadList="opentrain" @getA01ListInfo="getA01List"/>
      <basicInvestigation v-if="basicInvestigation" ref="basicInvestigation" @getA01ListInfo="getA01List"/>
      <basicCommunication v-if="basicCommunication" ref="basicCommunication" @getA01ListInfo="getA01List"/>
      <basicPersonalMatters v-if="basicPersonalMatters" ref="basicPersonalMatters" @getA01ListInfo="getA01List"/>
      <basicInvestigation v-if="basicInvestigation" ref="basicInvestigation" @getA01ListInfo="getA01List"/>
      <show-basicYpgz v-if="showBasicYpgz" ref="dialogBasicYpgz" @getA01ListInfo="getA01List"/>
      <show-basicDjzr v-if="showBasicDjzr" ref="dialogBasicDjzr" @getA01ListInfo="getA01List"/>
      <show-basicXlShow v-if="showbasicXl" ref="dialogbasicXl" @getA01ListInfo="getA01List"/>
      <show-basicAuditShow v-if="showBasicAuditShow" ref="dialogBasicAudit" @getA01ListInfo="getA01List"/>
      <show-basiCaffirmShow v-if="showBasicRdShow" ref="dialogBasicRd"/>
      <show-openMove v-if="showOpenMove" ref="dialogOpenMove" @reloadSure="initItemSure"/>
      <show-basicZwShow v-if="showBasicZwShow" ref="dialogBasicZw" @reloadZwlb="initItemZwlb" @getA01ListInfo="getA01List"/>
      <archiveFile-show ref="dialogarchiveFile" @onUpdateSuccess="onAddSuccess"/>
      <show-basicZhuanyejishuShow v-if="basicZhuanyejishu" ref="dialogbasicZhuanyejishu" @getA01ListInfo="getA01List"/>
      <show-basicRudangshijian v-if="basicRudangshijian" ref="dialogbasicRudangshijian"/>
      <show-basicGDJTSLShow v-if="basicGDJTSLShow" ref="dialogBasicGDJTSL" @reloadZwlb="initItemZwlb" @getA01ListInfo="getA01List"/>
  
  
    </el-dialog>
  
  </template>
  <script>
      import {
          getA01ByA0000,
          getA88ByA0000,
          getA01List,
          settingAG0122byA0000,
          getAs60ByA0000,
          getAG87ByA0000,
          getPhotoByA0000,
          addOrUpdate,
          downDocForPerson,
          upload
      } from '@/api/young/datacollect/rmbInfo/rmb'
      import {getItem} from '@/api/young/system/role/role'
      import qzInputcode from '@/views/young/common/qz-inputcode/index'
      import qzInputphoto from '@/views/young/common/qz-inputphoto/index'
      import itemTreeRmb from '@/views/young/system/dictionary/dictionaryItem/itemTreeRmb'
      import itemTopTreeRmb from '@/views/young/datacollect/rmbInfo/topItemTreeRmb'
      import institutionItemTree from '@/views/young/system/dictionary/dictionaryItem/institutionItemTree'
      import showDeptTree from '@/views/young/system/dictionary/dictionaryItem/itemTreeDept'
      import showgxhxIndex from '@/views/young/gbhx/gbhxIndex'
      import basicInvestigation from '@/views/young/datacollect/cadrePortrayal/basicInvestigation'
      import basicCommunication from '@/views/young/datacollect/cadrePortrayal/basicCommunication'
      import basicPersonalMatters from '@/views/young/datacollect/cadrePortrayal/basicPersonalMatters'
      import training from '@/views/young/datacollect/cadrePortrayal/basicTrain'
      import basicYpgz from '@/views/young/datacollect/cadrePortrayal/basicYpgz'
      import basicDjzr from '@/views/young/datacollect/cadrePortrayal/basicDjzr'
      import {getItemTreeNew} from '@/api/young/system/dictionary/dictionary.js'
      import basicXlShow from '@/views/young/datacollect/cadrePortrayal/basicXlShow'
      import basicAuditShow from '@/views/young/datacollect/cadrePortrayal/basicAuditShow'
      import basiCaffirmShow from '@/views/young/datacollect/cadrePortrayal/basiCaffirmShow'
      import openMove from '@/views/young/datacollect/rmbInfo/openMove'
      import {getZwList} from '@/api/young/datacollect/cadrePortrayal/cadrePortrayal.js'
      import basicZwShow from '@/views/young/datacollect/cadrePortrayal/basicZw'
      import archiveFileShow from '@/views/young/datacollect/archiveFile'
      import basicZhuanyejishuShow from '@/views/young/datacollect/cadrePortrayal/basicZhuanyejishu'
      import basicRudangshijian from '@/views/young/datacollect/cadrePortrayal/basicRudangshijian'
      import {itemList} from "@/api/young/system/log/log"
      import {getA0141} from '@/api/young/datacollect/cadrePortrayal/cadrePortrayal.js'
      import basicGDJTSLShow from '@/views/young/datacollect/cadrePortrayal/basicGDJTSL'
      import webapp from '@/config/webapp'
      import rmbFileNameEnum from '@/api/young/datacollect/rmbInfo/rmbFileNameEnum'
      import store from "@/store";
  
  
      const cityOptions = ['已提拔为省管正职', '超龄', '已辞职', '违纪违规', '已去世', '不再适宜']
      export default {
          name: 'QzAppointForm1',
          components: {
              itemTopTreeRmb: itemTopTreeRmb,
              itemTreeRmb: itemTreeRmb,
              institutionItemTree: institutionItemTree,
              showDeptTree: showDeptTree,
              'qz-inputcode': qzInputcode,
              'qz-inputphoto': qzInputphoto,
              'showgxhxIndex': showgxhxIndex,
              'gb-training': training,
              'basicInvestigation': basicInvestigation,
              'basicCommunication': basicCommunication,
              'basicPersonalMatters': basicPersonalMatters,
              'show-basicYpgz': basicYpgz,
              'show-basicDjzr': basicDjzr,
              'show-basicXlShow': basicXlShow,
              'show-basicAuditShow': basicAuditShow,
              'show-basiCaffirmShow': basiCaffirmShow,
              'show-openMove': openMove,
              'show-basicZwShow': basicZwShow,
              'archiveFile-show': archiveFileShow,
              'show-basicZhuanyejishuShow': basicZhuanyejishuShow,
              'show-basicRudangshijian': basicRudangshijian,
              'show-basicGDJTSLShow': basicGDJTSLShow
  
          },
          props: {
              // 提交后是否关闭(默认true)
              autoClose: {
                  type: Boolean,
                  default: true,
                  required: false,
              }
          },
          data: () => {
              return {
                  other_loading: true,
                  // fileList: [],
                  disabled: true,
                  AS0119: '',
                  addAS6006: '',
                  AS6004: null,
                  dateTest: null,
                  loading: false,
                  inServForm: {},
                  basicZhuanyejishu: false,
                  basicRudangshijian: false,
                  basicGDJTSLShow: false,
                  showBasicZwShow: false,
                  showOpenMove: false,
                  showBasicRdShow: false,
                  showBasicAuditShow: false,
                  openAudit: false,
                  showbasicXl: false,
                  showBasicDjzr: false,
                  showBasicYpgz: false,
                  training: true,
                  showBasicTrain: false,
                  itemList: [], // 权限字段
                  radio: 1, // 选调层次 选择代码 省选调为 1
                  isStudent: false, // 是否选调生 复选框
                  showgxhxIndex: false,
                  basicInvestigation: false,
                  basicCommunication: false,
                  basicPersonalMatters: false,
                  outWareList: [], // 存放出库原因
                  checkList: [], // 勾选 女干部 年轻干部等
                  checkAG0161List: [],
                  checkAG0161Key: [],
                  checkAG8701List: [],
                  checkAG8701Key: [],
                  checkAG0194List: [],
                  checkAG2501BList: [],
                  AG9303_1: '', // 干部人事档案是否已核查
                  AG9303_2: '',
                  AG9303_3: '',
                  AG9303_4: '',
                  AG9304_1: '',
                  AG9304_2: '',
                  AG9304_3: '',
                  AG9304_4: '',
                  zwjtlb: '', // 职务具体类别
                  checkAwardList: [], // 勾选 奖励
                  checkAG0139List: [], // 勾选省管干部
                  cities: cityOptions, // 全部出库原因页面显示
                  showItemTopTreeRmb: false,
                  showItemTreeRmb: false,
                  institutionItemTree: false,
                  showDeptTree: false,
                  columnTimeWidth: '180', // 返回简历表格宽度
                  columnOtherWidth: '30', // 返回复选框 操作表格宽度
                  columnRemarkWidth: '420', // 返回简历信息表格宽度
                  readonly: false,
                  // stratTime: 0,
                  // stopTime: '',
                  // renzhiTime: '',
                  title: '人员详情',
                  type: 'add',
                  visible: false,
                  visibleDetail: true,
                  heightY: window.innerHeight - 160,
  
                  jianliIndex: 0,
                  // 按钮是否可以继续
                  buttonDisabled: false,
                  // 文件服务器地址
                  // fileServerPath: process.env.VUE_APP_SERVANT_BASE_URL + '/register/register/uploadByLrmx',
                  // fileServerPath: webapp.GHB_URL + '/datacollect/rmbInfo/upload',
                  // fileServerPath: process.env.VUE_APP_FILE_API + '/file/upload',
                  fileServerPath: webapp.ghb_file_url,
  
                  label1: '',
                  label2: '',
                  infiledList: [], // 简历信息
                  officeTimeList: [{renzhiTime1: ''}], // 遍历年限
                  itemCodeList: {
                      // 股票基金等理财产品
                      BJ606: [],
                      BJ602: [],
                      ZB09_ZHGL: [],
                      ZB09_New: [],
                      BJ251: [],
                      zb09_nqgbNew: [],
                      GB22612: []
                  },
                  fileUpload: {
                      AG9305_1: [],
                      AG9305_2: [],
                      AG9305_3: [],
                      AG9305_4: []
                  },
  
                  outWare: {
                      A0000: '',
                      AG8700: '', // id
                      AG8701: '', // 出库原因
                      AG8702: '' // 出库时间
                  },
                  resume: {
                      A0000: '',
                      isCheck: false, // 简历是否勾选
                      A8801: '',
                      A8802: '',
                      A8803: ''
                  },
                  add: {
                      addAg0140: '',
                      addAg0141: '',
                      addAG0504F: '',
                      addAG0504G: '',
                      addAG0504A: '',
                      addAG0504B: '',
                      addAG0504C: '',
                      addAG0504D: '',
                      addAG0150B: '',
                      addAG0127B: '',
                      addAG0108B: '',
                      addAG0135: '',
                      addAG0152: '',
                      addAG0146: '',
                      addAG0147: '',
                      addAG0148: '',
                  },
  
                  person: {
                      AS0172: '',
                      AS0173: '',
                      AS0174: '',
                      AS0175: '',
                      A0168: '',
                      A0169: '',
                      AS0170: '',
                      AS0171: '',
                      AG0110B: '',
                      AG0112B: '',
                      AG0151: '',
                      AG0152: '',
                      AG0140: '', // 选择的领导职务
                      AG0141: '', // 选中得职级
                      AG0142A: '', // 事业单位岗位等级描述
                      AG0124: '', // 选中的人选类别
                      AG0126A: '', // 近期培养方向
                      AG0146: '', // 未核查原因
                      AG0147: '', // 房产
                      AG0148: '', // 股票基金等理财产品
                      AG0135: '', // 婚姻状况
                      AG0125: '', // 推荐单位
                      AG0504F: '',
                      AG0504G: '',
                      AG0504A: '',
                      AG0504B: '',
                      AG0504C: '',
                      AG0504D: '',
                      A0191: '',
                      AG0127B: '',
                      AG0150B: '',
                      AG0108B: '',
                      AG0153: '',
                      AG0154: '',
                      AG0155: '',
                      AG0156: '',
                      AG0157: '',
                      AG0158: '',
                      AG0159: '',
                      AG0160: '',
                      AG0161: '',
                      AG0162: '',
                      AG0162URL: '',
                      AG0163: '',
                      AG0163URL: '',
                      AG0164: '',
                      AG0164URL: '',
                      AG0165: '',
                      AG0165URL: '',
                      a0000: '',
                      // 姓名
                      a0101: '',
                      // 性别
                      a0104: '',
                      // 年龄
                      age: '',
                      // 出生年月
                      a0107: '',
                      // 民族
                      a0117: '',
                      // 籍贯(汉字)
                      a0111a: '',
                      // 出生地(代码)
                      a0114a: '',
                      // 入党时间
                      a0140: '',
                      // 照片名称
                      photoFilename: '',
                      // 照片url
                      photoFileurl: '',
                      AG0134: '',
                      AG0133: '',
                      // 参加工作时间
                      a0134: '',
                      // 健康状况
                      a0128: '',
                      // 最高全日制学位
                      qrzxw: '',
                      // 最高全日制学历
                      qrzxl: '',
                      // 毕业院校 全日制
                      qrzxlxx: '',
                      // 毕业专业 全日制
                      qrzxwxx: '',
                      // 在职教育 学历
                      zzxl: '',
                      // 在职教育 学位
                      zzxw: '',
                      // 在职教育 毕业院校
                      zzxwxx: '',
                      // 在职教育 毕业专业
                      zzxlxx: '',
                      // 职务具体类别
                      AG0136A: '',
                      // 专业技术职务
                      a0196: '',
                      // 特长
                      a0187a: '',
                      // 工作单位及职务
                      a0192a: '',
                      // 拟任职务
                      nrzw: '',
                      // 拟免职务
                      nmzw: '',
                      // 简历
                      a1701: '',
                      // 奖惩综述
                      a14z101: '',
                      // 年度考核结果综述
                      a15z101: '',
                      /* // 性别描述
                       a0104a: '',*/
                      // 身份证号
                      a0184: '',
                      // 呈报单位
                      cbdw: '',
                      // 计算年龄时间
                      reckonAgeTime: '',
                      // 填表时间
                      fillTime: '',
                      // 填表人
                      fillPerson: '',
                      // 具体单位编码
                      A0137: '',
                      // 具体单位名称
                      A0137A: '',
                      // 单位类型
                      AG0138: '',
                      // 熟悉领域
                      AG0108: '',
                      AG0108A: '',
                      // 行为特征
                      AG0150A: '',
                      // 培养措施
                      AG0127A: '',
                      A89: '',
                      AG0143: '', // 培训情况
                      AG0127: '',
                      // 援派挂职
                      AG0130: '',
                      // 实践锻炼
                      // 实践锻炼
                      AG0128: '',
                      AG0128A: '',
                      // 风格类型
                      AG0110: '',
                      AG0110A: '',
                      // 性格特征
                      AG0112: '',
                      AG0112A: '',
                      // 考察情况
                      AG0144: '',
                      // 交流情况
                      AG0129: '',
                      // 个人有关事项
                      AG0131: '',
                      AG0132: '',
                      AG0122: '', // 历任重要职务
                      AG0120: '', // 历任重要职务重要经历标识
                      AG0120A: '', // 历任重要职务重要经历标识
                      AG0121: '', // 工作经历细项
                      AG0121A: '', // 工作经历细项
                      AS0101: '', // 女干部
                      AS0119: '', // 年轻干部
                      AS0103: '', // 少数民族
                      AS0104: '', // 党外
                      AS0106: '', // 归侨
                      photoName: '', // 头像信息
                      AG0139: '', // 省管干部
                      AS0180:"",//女干部new
                      AS0181:"",//少数民族new
                      AS0182:"",//党外干部new
  
  
  
                      // 家庭成员信息（表单提交保存用）
                      a36s: [{
                          a3600: '',
                          a3604a: '',
                          a3601: '',
                          a3607: '',
                          a3627: '',
                          a3611: '',
                          ag3685: '',
                          ag3686: '',
                          ag3687: '',
                          ag3688: '',
                          ag3689: '',
                          ag3690: '',
                          ag3691: '',
                          ag3692: ''
                      }]
                  },
  
                  gird:"2",
                  young:"2",
                  nation:"2",
                  outside:"2",
                  returned:"2",
              }
          },
          computed: {
  
              heightDialog() {
                  return this.heightY
              },
              officeTime: function () {
                  const that = this
                  that.officeTimeList = []
                  for (var i = 0; i < that.infiledList.length; i++) {
                      if (that.infiledList[i].A8802 === '' || that.infiledList[i].A8801 === '' || that.infiledList[i].A8802 == null || that.infiledList[i].A8801 == null) {
                          that.officeTimeList.push({AS8806: ''})
                      } else {
                          // 计算起止时间中间的月数
                          var mouth = (parseInt(that.infiledList[i].A8802.substring(0, 4)) * 12 + parseInt(that.infiledList[i].A8802.substring(4))) - (parseInt(that.infiledList[i].A8801.substring(0, 4)) * 12 + parseInt(that.infiledList[i].A8801.substring(4)))
                          // 计算起止时间之间的年数
                          var year = (parseInt(that.infiledList[i].A8802.substring(0, 4)) - parseInt(that.infiledList[i].A8801.substring(0, 4)))
                          // 不满一年只显示月 ， 月为 0 只显示年
                          that.officeTimeList.push({AS8806: (parseInt(mouth) < 12 ? (parseInt(mouth) % 12) + '个月' : year + '年' + ((parseInt(mouth) % 12) === 0 ? '' : (parseInt(mouth) % 12) + '个月'))})
                      }
                  }
                  for (var i = 0; i < that.officeTimeList.length; i++) {
                      that.infiledList[i].AS8806 = that.officeTimeList[i].AS8806 // 将officeTime 数组中计算年限结果 放入到简历数组中（infileList[]）
                  }
                  return that.infiledList
              }
          },
          methods: {
  
            getA01List(a0184) {
              this.loading = true;
              const params = {
                "AS0119":this.young,//优秀年轻干部
                "AS0180":this.gird,//女干部标记
                "AS0181":this.nation, //少数民族标记
                "AS0182":this.outside,//党外干部标记
                "AS0106":this.returned,//归侨侨眷
                "idCard":a0184,
              }
              getA01ByA0000(params).then(result => {
                let dataList = result.resultdata.a01List;
                if (result.result){
                  this.person.a0192a = dataList.a02;
                  this.person.a15z101 = dataList.a15;
                  this.person.AG0143 = dataList.a89;
                  this.person.AG0132 = dataList.ag90;
                  this.person.AG0129 = dataList.ag91;
                  this.person.AG0131 = dataList.ag92;
                  this.person.AG0130 = dataList.ag94;
                  this.person.AG0144 = dataList.ag95;
                  this.person.AS0175 = dataList.ag96;
                }
                this.loading = false;
              })
            },
  
  
              // 二级代码树
              openTopTree(type, title) {
                  var that = this
                  that.showItemTopTreeRmb = true
                  this.$nextTick(() => {
                      let input = null;
                      that.$refs.dialogItemTopTreeRmb.initData(type, title, this.person.AG0142)
                  })
              },
  
              /*beforeUpload(file) {
                  if (this.fileList.length > 0) {
                      this.$message({
                          type: 'warning',
                          message: '最多只能上传一个附件'
                      })
                      return false
                  }
                  // 获取上传文件的后缀
                  const index = file.name.lastIndexOf('\.') + 1
                  // eslint-disable-next-line no-unused-vars
                  const suffix = file.name.substring(index, file.name.length)
                  // eslint-disable-next-line eqeqeq
                  if (suffix != 'doc' && suffix != 'docx' && suffix != 'pdf') {
                      this.$message({
                          dangerouslyUseHTMLString: true,
                          message: '<strong>' + '上传文件类型必须为：' + 'doc/docx/pdf' + '格式' + '</strong>',
                          type: 'warning'
                      })
                      return
                  } else {
                      const isLt1M = file.size / 1024 / 1024 < 10
                      if (!isLt1M) {
                          this.$message({
                              type: 'warning',
                              message: '上传文件大小不能超过 10MB!'
                          })
                          return
                      }
                  }
              },
              newfileUpload(param){
                  if (this.fileUpload[`AG9305_${param.data}`].length > 0) {
                      this.fileUpload[`AG9305_${param.data}`].splice(0, 1)
                  }
                  console.log(param,"paramparamparam")
                  //组装后台参数
                  const formData = new FormData();
                  formData.append('file', param.file)
                  formData.append('filePath', this.person.a0184)
                  formData.append('fileType', param.data)
                  formData.append('fileName', '')
                  formData.append('oldFile', '')
                  upload(formData).then(res => {
                      if(res.result){
                          this.fileUpload[`AG9305_${param.data}`].push({
                              'filename': res.resultdata.fileName,
                              'fileurl': res.resultdata.filePath
                              // 'fileId': scope.row.fileId
                          })
                          if (param.data == 1) {
                              this.person.AG0162 = res.resultdata.fileName
                              this.person.AG0162url = res.resultdata.filePath
                          } else if (param.data == 2) {
                              this.person.AG0163 = res.resultdata.fileName
                              this.person.AG0163url = res.resultdata.filePath
                          } else if (param.data == 3) {
                              this.person.AG0164 = res.resultdata.fileName
                              this.person.AG0164url = res.resultdata.filePath
                          } else if (param.data == 4) {
                              this.person.AG0165 = res.resultdata.fileName
                              this.person.AG0165url = res.resultdata.filePath
                          }
                      }
                      this.loading = false;
                  }).catch(() => {
                      this.loading = false;
                  })
              },*/
              // 观点具体事例额
              openGDJTSLShow(row) {
                  var that = this
                  this.basicGDJTSLShow = true
                  this.$nextTick(() => {
                      this.$refs.dialogBasicGDJTSL.init(row)
                  })
              },
              //女干部、党外干部等复选框改变事件
              async checkBoxSelectionChange(val, type) {
                console.log(val,"val");
                this.valFlag = val
                if(type == "优秀女干部"){
                   if(val == true){
                        this.gird = "1"
                   }else{
                    this.gird = "2"
                   }
                }
                if(type == "优秀年轻干部"){
                   if(val == true){
                        this.young = "1"
                   }else{
                    this.young = "2"
                   }
                }
                if(type == "优秀少数民族干部"){
                   if(val == true){
                        this.nation = "1"
                   }else{
                    this.nation = "2"
                   }
                }
                if(type == "优秀党外干部"){
                   if(val == true){
                        this.outside = "1"
                   }else{
                    this.outside = "2"
                   }
                }
                if(type == "归侨侨眷"){
                   if(val == true){
                        this.returned = "1"
                   }else{
                    this.returned = "2"
                   }
                }
  
                  //遍历记录是否触发弹框
                  let isFuc = false;
                  //描述
                  let desc = '';
                  //判断是否是选中
                  if (val) {
                      //根据type判断相应值
                      if (type == '优秀女干部') {
                          //判断当前性别是否是女
                          if (this.person.a0104 != null && this.person.a0104 != '女') {
                              isFuc = true;
                              desc = '当前选中与人员性别不符'
                          }
                      } else if (type == '优秀年轻干部') {
                          if (this.person.a0107 != null && this.GetAge(this.person.a0107.toString()) > 35) {
                              isFuc = true;
                              desc = '当前选中与人员年龄不符'
                          }
                      } else if (type == '优秀少数民族干部') {
                          if (this.person.a0117 != null && this.person.a0117.indexOf('汉') == 0) {
                              isFuc = true;
                              desc = '当前选中与人员民族不符'
                          }
                      } else if (type == '优秀党外干部') {
                          const personA0000 = {
                              'a0000': this.person.a0000
                          }
                          const data = await getA0141(personA0000);
                          let a0141 = data.resultdata.a0141;
                          if (a0141 != null && a0141 != '中共党员') {
                              isFuc = true;
                              desc = '当前选中与人员政治面貌不符'
                          }
                      }
                      desc += '是否继续选择？'
                      if (isFuc) {
                          this.$confirm(desc, '提示', {
                              confirmButtonText: '确定',
                              cancelButtonText: '取消',
                              type: 'warning'
                          }).then(() => {
  
                          }).catch(() => {
                              //移除集合中改元素
                              this.checkList.splice(this.checkList.indexOf(type), 1);
                          });
                      }
                  }
  
              },
              GetAge(strBirthday) {
                  var returnAge,
                      strBirthdayArr = strBirthday.split("-"),
                      birthYear = strBirthdayArr[0],
                      birthMonth = strBirthdayArr[1],
                      birthDay = strBirthdayArr[2],
                      d = new Date(),
                      nowYear = d.getFullYear(),
                      nowMonth = d.getMonth() + 1,
                      nowDay = d.getDate();
                  if (nowYear == birthYear) {
                      returnAge = 0;//同年 则为0周岁
                  } else {
                      var ageDiff = nowYear - birthYear; //年之差
                      if (ageDiff > 0) {
                          if (nowMonth == birthMonth) {
                              var dayDiff = nowDay - birthDay;//日之差
                              if (dayDiff < 0) {
                                  returnAge = ageDiff - 1;
                              } else {
                                  returnAge = ageDiff;
                              }
                          } else {
                              var monthDiff = nowMonth - birthMonth;//月之差
                              if (monthDiff < 0) {
                                  returnAge = ageDiff - 1;
                              } else {
                                  returnAge = ageDiff;
                              }
                          }
                      } else {
                          returnAge = -1;//返回-1 表示出生日期输入错误 晚于今天
                      }
                  }
                  return returnAge;//返回周岁年龄
              },
  
              // 入党时间
              openRdsj(row) {
                  this.basicRudangshijian = true
                  this.$nextTick(() => {
                      this.$refs.dialogbasicRudangshijian.init(row)
                  })
              },
              // 打开专业技术信息
              openZhuanyejishu(row) {
  
                  this.basicZhuanyejishu = true
                  this.$nextTick(() => {
                      this.$refs.dialogbasicZhuanyejishu.init(row)
                  })
              },
              //文件预览
              showFile(fileurl) {
                  var getinto = fileurl
  
                  this.showOption = true
                  this.$nextTick(() => {
                      this.$refs.dialogarchiveFile.initShow(getinto)
                  })
              },
              showGbhx() {
                  // this.showForm = false
                  this.showgxhxIndex = true
                  this.$nextTick(() => {
                      this.$refs.dialogDxhxIndex.init(this.person)
                  })
              },
              openZw(row) {
                  this.showBasicZwShow = true
                  this.$nextTick(() => {
                      this.$refs.dialogBasicZw.init(row)
                  })
              },
  
              openMove(param) {
                  this.showOpenMove = true
                  this.$nextTick(() => {
                      this.$refs.dialogOpenMove.init(param)
                  })
              },
              bindCheckBox() {
                  if (this.checkAG2501BList.length > 1) {
                      this.checkAG2501BList.splice(0, 1)
                  }
                  this.person.AG2501B = this.checkAG2501BList[0]
              },
              bindCheckBox1() {
                  if (this.checkAG0194List.length > 1) {
                      this.checkAG0194List.splice(0, 1)
                  }
                  this.person.AG0194 = this.checkAG0194List[0]
              },
              // 打开认定信息
              openRdShow(row) {
                  // this.openRd = true
                  this.showBasicRdShow = true
                  this.$nextTick(() => {
                      this.$refs.dialogBasicRd.init(row)
                  })
              },
              // 打开年度考核信息
              openAuditShow(row) {
                  // openAuditShow(row,idcard) {
                  this.openAudit = true
                  this.showBasicAuditShow = true
                  this.$nextTick(() => {
                      this.$refs.dialogBasicAudit.init(row)
                  })
              },
              // 打开学历信息
              openXlShow(row) {
                  this.showbasicXl = true
                  this.$nextTick(() => {
                      this.$refs.dialogbasicXl.init(row)
                  })
              },
              // 党纪政务处分及责任追究
              openDjzrShow(row) {
                  var that = this
                  that.openDjzr = true
                  this.showBasicDjzr = true
                  this.$nextTick(() => {
                      this.$refs.dialogBasicDjzr.init(row)
                  })
              },
              // 援派挂职
              openYpgzShow(row) {
                  this.showBasicYpgz = true
                  this.$nextTick(() => {
                      this.$refs.dialogBasicYpgz.init(row)
                  })
              },
              // 培训情况
              opentrainAdd(row) {
                  var that = this
                  that.opentrain = true
                  this.showBasicTrain = true
                  this.$nextTick(() => {
                      // this.dialogBasicTrain = true
                      this.$refs.dialogBasicTrain.init(row)
                  })
              },
              getUuid: function () {
                  const s = []
                  const hexDigits = '0123456789abcdef'
                  for (let i = 0; i < 36; i++) {
                      s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)
                  }
                  s[14] = '4'
                  s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1)
                  s[8] = s[13] = s[18] = s[23] = '-'
  
                  const uuid = s.join('')
                  return uuid
              },
              // 二级代码树回调
              async initItemTopTreeRmb(codeStr, descStr) {
                  this.person.AG0142 = codeStr
                  this.person.AG0142A = descStr
              },
              // 二级代码树回调
              async initItemTreeRmb(arr, arrDes, col, input) {
  
                  if (col === 'AG0108' || col === 'AG0110' || col === 'AG0112' || col === 'AG0128' ||
                      col === 'AG0126' || col === 'AG0127' || col === 'AG0150' || col === 'AG0120' || col === 'AG0121') {
                      this.person[`${col}`] = arr
                      this.person[`${col}A`] = arrDes
                      if (`${col}B` === 'AG0110B' || `${col}B` === 'AG0112B') {
                          this.person[`${col}B`] = input
                      }
                      /*    if (`${col}B` === 'AG0112B' || `${col}B` === 'AG0112B') {
                              //arr.indexOf(val) > -1 // true 包含 false 不包含
                              if(arrDes.indexOf("其他") > -1 ) {
                                  console.info()
                                  this.person[`${col}A`] = arrDes.replace(",其他",'')
                                 // this.person[`${col}A`] = input
                              }
                              this.person[`${col}B`] = input
                          }*/
                  } else {
                      this.infiledList[this.jianliIndex][`${col}`] = arr
                      this.infiledList[this.jianliIndex][`${col}A`] = arrDes
                      this.resume[`${col}`] = arr
                      this.resume[`${col}A`] = arrDes
                  }
                  // this.createJob(col)
              },
              // initItemZwlb: (data) => {
              //   alert('我是父页的方法并接收到了子页的传来的值：' + JSON.stringify(data))
              // },
              async initItemZwlb(params) {
                  if (params.ag0201a != null && params.ag0201a != '') {
                      this.zwjtlb += params.ag0201a + ','
                  }
                  this.zwjtlb = this.zwjtlb.substring(0, this.zwjtlb.lastIndexOf(',')) // 将 拼接字符串最后一位，去掉
              },
              async initItemSure(params) {
                  this.person.a36s.forEach((item) => {
                      if (params.a3600 == item.a3600) {
                          item.ag3687 = params.ag3687
                          item.ag3688 = params.ag3688
                          item.ag3689 = params.ag3689
                          item.ag3690 = params.ag3690
                          item.ag3691 = params.ag3691
                      }
                  })
              },
  
              // 考察情况
              openAG0144(param) {
                  this.basicInvestigation = true
                  this.$nextTick(() => {
                      this.$refs.basicInvestigation.init(param)
                  })
              },
              // 交流情况
              openAG0129(param) {
                  this.basicCommunication = true
                  this.$nextTick(() => {
                      this.$refs.basicCommunication.init(param)
                  })
              },
              // 个人有关事项
              openAG0131(param) {
                  this.basicPersonalMatters = true
                  this.$nextTick(() => {
                      this.$refs.basicPersonalMatters.init(param)
                  })
              },
              // 简历删除行
              deleteRow(index, rows) {
                  rows.splice(index, 1)
              },
              // 简历新增行
              addRow(tableData, event) {
                  tableData.push({})
              },
              // 添加勾选
              addCheck() {
                  this.person.AG0122 = ''
                  /* this.person.AG0120 = ''
                  this.person.a0133n = ''*/
                  for (const item of this.infiledList) {
                      // eslint-disable-next-line eqeqeq
                      if (item.isCheck == true) {
                          // eslint-disable-next-line eqeqeq
                          if (item.A8802 == '') { // 勾选最后一条是任现职的
                              // eslint-disable-next-line eqeqeq
                              this.person.AG0122 += item.A8801 + ' ' + '任现职'
                              return
                          }
                          this.person.AG0122 += item.A8801 + ' ' + item.A8803 + ' ， ' // 简历信息 历任主要职务
                      }
                  }
              },
              // 简历生成  工作经历细项 和 重要职务标识
              createJob(col) {
                  if (col === 'AS8804') {
                      this.person.AG0120 = ''
                      for (const item of this.infiledList) {
                          this.person.AG0120 += item.AS8804A + ',' // 历任重要职务重要经历标识
                      }
                  } else {
                      this.person.AG0121 = ''
                      for (const item of this.infiledList) {
                          this.person.AG0121 += item.AS8808A + ',' // 工作经历细项生成
                      }
                      this.person.AG0121 = this.person.AG0121.substring(0, this.person.AG0121.lastIndexOf(',')) // 将 拼接字符串最后一位，去掉
                  }
              },
              // 提交 编辑 保存
  
              onSubmit() {
                  if (this.person.AG0147 != '' && this.person.AG0147 != null && !/^[0-9]+$/.test(this.person.AG0147)) {
                      this.$message({
                          dangerouslyUseHTMLString: true,
                          message: '<strong>' + '房产套数请输入数字!' + '</strong>',
                          type: 'warning'
                      })
                      return
                  }
                  // 出库原因 ：
                  // eslint-disable-next-line eqeqeq
                  /* if (this.outWareList.length == 0) { // 如果勾选 向后台传入空字符串
                       this.outWare.AG8701 = ''
                   } else {
                       this.outWare.AG8701 = this.outWareList[0] // 将选择的出库信息取出
                   }
                   if (this.outWare.AG8702 == null) {
                       this.outWare.AG8702 = ''
                   }*/
                  // this.student.AS6005 = this.radio
                  // 是否选调生
                  // if (this.radio === 1) {
                  //     this.student.AS6005 = '省选调'
                  // } else if (this.radio === 2) {
                  //     this.student.AS6005 = '市选调'
                  // } else if (this.radio === 3) {
                  //     this.student.AS6005 = '县选调'
                  // } else if (this.radio === 4) {
                  //     this.student.AS6005 = '乡镇（街道）'
                  // } else {
                  //     this.student.AS6005 = ''
                  // }
                  // this.person.AS0171=this.radio;
                  // if (this.isStudent == true) {
                  //     this.person.AS0170 = 1
                  // } else if (this.isStudent == false) {
                  //     this.person.AS0170 = 0
                  // } else {
                  //     this.person.AS0170 = ''
                  // }
                  // if (this.student.AS6003 == 0) {
                  //     this.student.AS6005 = ''
                  //     this.student.AS6004 = ''
                  //     this.student.AS6006 = ''
                  // } else {
                  //     this.student.AS6004 = this.AS6004
                  //     this.student.AS6006 = this.addAS6006
                  //
                  // }
  
  
                  // 处理复选 女干部 年轻干部等 复选框中选择 其属性值为 1
                  // eslint-disable-next-line for-direction
                  for (var i = 0; i < this.checkList.length; i++) {
                      if (this.checkList.indexOf('优秀女干部') > -1) {
                          this.person.AS0180 = '1'
                      } else {
                          this.person.AS0180 = '0'
                      }
                      if (this.checkList.indexOf('优秀年轻干部') > -1) {
                          this.person.AS0119 = '1'
                      } else {
                          this.person.AS0119 = '0'
                      }
                      if (this.checkList.indexOf('优秀少数民族干部') > -1) {
                          this.person.AS0181 = '1'
                      } else {
                          this.person.AS0181 = '0'
                      }
                      if (this.checkList.indexOf('优秀党外干部') > -1) {
                          this.person.AS0182 = '1'
                      } else {
                          this.person.AS0182 = '0'
                      }
                      if (this.checkList.indexOf('归侨侨眷') > -1) {
                          this.person.AS0106 = '1'
                      } else {
                          this.person.AS0106 = '0'
                      }
                      //在没权限时，保存的值仍为查询的值，只是无权限查看
                      if (this.itemList.includes("AG0152") == false) {
                          this.person.AG0152 = this.add.addAG0152
                      }
                      if (this.itemList.includes("AG0135") == false) {
                          this.person.AG0135 = this.add.addAG0135
                      }
                      if (this.itemList.includes("AG0140") == false) {
                          this.person.AG0140 = this.add.addAg0140
                      }
                      if (this.itemList.includes("AG0141") == false) {
                          this.person.AG0141 = this.add.addAg0141
                      }
                      if (this.itemList.includes("AG0504F") == false) {
                          this.person.AG0504F = this.add.addAG0504F
                      }
                      if (this.itemList.includes("AG0504G") == false) {
                          this.person.AG0504G = this.add.addAG0504G
                      }
                      if (this.itemList.includes("AG0504A") == false) {
                          this.person.AG0504A = this.add.addAG0504A
                      }
                      if (this.itemList.includes("AG0504B") == false) {
                          this.person.AG0504B = this.add.addAG0504B
                      }
                      if (this.itemList.includes("AG0504C") == false) {
                          this.person.AG0504C = this.add.addAG0504C
                      }
                      if (this.itemList.includes("AG0504D") == false) {
                          this.person.AG0504D = this.add.addAG0504D
                      }
                      if (this.itemList.includes("AG0150B") == false) {
                          this.person.AG0150B = this.add.addAG0150B
                      }
                      if (this.itemList.includes("AG0127B") == false) {
                          this.person.AG0127B = this.add.addAG0127B
                      }
                      if (this.itemList.includes("AG0108B") == false) {
                          this.person.AG0108B = this.add.addAG0108B
                      }
                      if (this.itemList.includes("AG0146") == false) {
                          this.person.AG0146 = this.add.addAG0146
                      }
                      if (this.itemList.includes("AG0147") == false) {
                          this.person.AG0147 = this.add.addAG0147
                      }
                      if (this.itemList.includes("AG0148") == false) {
                          this.person.AG0148 = this.add.addAG0148
                      }
                  }
                  // 处理 奖励信息 获得省部级及以上奖励  等等
                  // eslint-disable-next-line no-redeclare
                  // 省管干部
                  for (var i = 0; i < this.checkAG0139List.length; i++) {
                      if (this.checkAG0139List.indexOf('省管干部') > -1) {
                          this.person.AG0139 = '1'
                      } else {
                          this.person.AG0139 = '0'
                      }
                  }
                  const params = {
                      'person': this.person,
                      'infiledList': this.infiledList,
                      'outWare': this.outWare,
                  }
                  var that = this
                  addOrUpdate(params).then(result => {
                      if (result.result) {
                          that.$message({
                              message: '保存成功',
                              type: 'success'
                          })
                          this.$emit('addCallback') // 调用父页面init方法查询a01人员数据
                      } else {
                          that.$message({
                              message: result.message,
                              type: 'warning'
                          })
                      }
  
                  })
  
                  // eslint-disable-next-line no-undef
                  if (this.autoClose) {
                      this.visible = false
                  } // 关闭窗口
              },
              // 职务名称带出
              findA02(param) {
                  const personA0000 = {
                      'a0000': param
                  }
                  getZwList(personA0000).then((data) => {
                      this.zwjtlb = ''
                      data.resultdata.forEach((item) => {
                          if (item.ag0201a != null && item.ag0201a != '') {
                              this.zwjtlb += item.ag0201a + ','
                          }
                      })
                      this.zwjtlb = this.zwjtlb.substring(0, this.zwjtlb.lastIndexOf(','))
                  })
              },
              onAddSuccess() {
              },
              async init(person, a36s, itemList, as0119) {
                console.log(itemList,"list")
                  this.other_loading = true;
                  this.AS0119 = as0119
                  //  查询 权限控制字段
                await this.getJurisdictionItem()
                  // 下拉框二级代码加载
                  this.getItemByCode('SD13');//选调层次
                  this.getItemByCode('SD16');//最新人选类别使用SD16
                  this.getItemByCode('zb09_nqgbNew') // 领导职务
                  this.getItemByCode('BJ606') // 股票基金理财产品
                  this.getItemByCode('BJ602') // 信访举报
                  this.getItemByCode('GB22612') // 婚姻状况
                  this.getItemByCode('ZB09_ZHGL') // 职级
                  this.getItemByCode('ZB09_New') // 职务层次
                  this.getItemByCode('BJ251') // 人选类别
                  this.getItemByCode('ZB09_ZHGL') // 职级
                  this.findA02(person.a0000)
                  // this.fileUpload[`AG9305_${1}`] = []
                  // this.fileUpload[`AG9305_${2}`] = []
                  // this.fileUpload[`AG9305_${3}`] = []
                  // this.fileUpload[`AG9305_${4}`] = []
                  const lenth = a36s.length - a36s.length
  
                  // this.fileUpload[`AG9305_${1}`].push({
                  //     'filename': person.ag0162,
                  //     'fileurl': person.ag0162url
                  //     // 'fileId': scope.row.fileId
                  // })
                  // this.fileUpload[`AG9305_${2}`].push({
                  //     'filename': person.ag0163,
                  //     'fileurl': person.ag0163url
                  //     // 'fileId': scope.row.fileId
                  // })
                  // this.fileUpload[`AG9305_${3}`].push({
                  //     'filename': person.ag0164,
                  //     'fileurl': person.ag0164url
                  //     // 'fileId': scope.row.fileId
                  // })
                  // this.fileUpload[`AG9305_${4}`].push({
                  //     'filename': person.ag0165,
                  //     'fileurl': person.ag0165url
                  //     // 'fileId': scope.row.fileId
                  // })
  
                  this.getA01(person,this.itemList)
                  this.getA88(person.a0000, this.itemList)
                  this.disabled = false
                  this.visibleDetail = true
                  this.readonly = true
                  this.buttonDisabled = false
                  this.checkList = []
                  this.checkAwardList = []
                  this.checkAG0139List = []
                  // 查询奖惩级别二级代码 ZB661
                  const dataCode = {
                      'dataCode': 'ZB661'
                  }
                  getItemTreeNew(dataCode).then((data) => {
                      this.checkAG0161List = []
                      data.resultdata.forEach((item) => {
                          this.checkAG0161List.push({
                              'value': item.itemCode,
                              'label': item.itemName
                          })
                      })
                  })
                  // 查询出库原因二级代码 SD12
                  const dataCodeSD12 = {
                      'dataCode': 'SD12'
                  }
                  getItemTreeNew(dataCodeSD12).then((data) => {
                      this.checkAG8701List = []
                      data.resultdata.forEach((item) => {
                          this.checkAG8701List.push({
                              'value': item.itemCode,
                              'label': item.itemName
                          })
                      })
                  })
                  for (let i = 0; i < lenth; i++) {
                      const a36 = {
                          /*   // 称谓
                          relation: '',
                          // 称谓描述
                          relationdesc: '',
                          // 姓名
                          name: '',
                          // 出生日期
                          birthDate: '',
                          // 政治面貌
                          policitalStatus: '',
                          // 政治面貌描述
                          policitalStatusdesc: '',
                          // 工作单位及职务
                          jobPost: '',*/
                          a3600: '',
                          a3604a: '',
                          a3601: '',
                          a3607: '',
                          a3627: '',
                          a3611: '',
                          ag3685: '',
                          ag3686: '',
                          ag3687: '',
                          ag3688: '',
                          ag3689: '',
                          ag3690: '',
                          ag3691: ''
                      }
                      a36s.push(a36)
                  }
                  var that = this
                  this.person.a36s = a36s // 将家庭人员信息赋值
                  this.person.photoFileurl = ''
                  this.person.photoFilename = ''
                  that.$nextTick(() => {
                      // that.$refs.inputphoto.init()
                  });
                  this.visible = true;
                  /* this.loadrootnode()*/
                this.getA01List(person.a0184)
              },
  
  
              editInit(params) {
                  this.visibleDetail = true
                  this.disabled = false
                  this.visible = true
                  this.type = 'edit'
                  this.buttonDisabled = false
                  for (let i = params.a36s.length; i < 10; i++) {
                      // eslint-disable-next-line no-unused-vars
                      const a36 = {
                          a3600: '',
                          a3604a: '',
                          a3601: '',
                          a3607: '',
                          a3627: '',
                          a3611: '',
                          ag3685: '',
                          ag3686: '',
                          ag3687: '',
                          ag3688: '',
                          ag3689: '',
                          ag3690: '',
                          ag3691: '',
                          ag3692: ''
                      }
                  }
                  this.person = params
                  this.$nextTick(() => {
                      // this.$refs.inputphoto.init()
                  })
              },
              checkAG0161() {
                  var str1 = ''
                  for (let i = 0; i < this.checkAG0161Key.length; i++) {
                      if (i < this.checkAG0161Key.length - 1) {
                          str1 += this.checkAG0161Key[i] + ','
                      } else {
                          str1 += this.checkAG0161Key[i]
                      }
                  }
                  this.person.AG0161 = str1
                  this.$emit('change', this.checkAG0161Key)
              },
              checkAG8701() {
                  var str1 = ''
                  for (let i = 0; i < this.checkAG8701Key.length; i++) {
                      if (i < this.checkAG8701Key.length - 1) {
                          str1 += this.checkAG8701Key[i] + ','
                      } else {
                          str1 += this.checkAG8701Key[i]
                      }
                  }
                  this.person.AG0161 = str1
                  this.$emit('change', this.checkAG8701Key)
              },
              async getA01(person, itemList) {
                  //改为同步，在获取人员之前先进行历任重要职务的更新
                  this.loading = true;
                  const params = {
                      'a0000': person.a0000,
                  }
  
                  const paramsNew = {
                      "AS0119":this.young,//优秀年轻干部
                      "AS0180":this.gird,//女干部标记
                      "AS0181":this.nation, //少数民族标记
                      "AS0182":this.outside,//党外干部标记
                      "AS0106":this.returned,//归侨侨眷
                      "idCard":person.a0184,
                  }
  
                  await settingAG0122byA0000(params);
                  await getA01ByA0000(paramsNew).then(result => {
                    let data = result.resultdata.a01[0];
                      // this.person = result.resultdata
                      if (result.result) {
                          this.person.a0000 = data.a0000
                          this.person.a0221 = data.a0221
                          this.person.a0192e = data.a0192e
                          this.person.a0101 = data.a0101 // 姓名
                          this.person.a0104 = data.a0104
                          // this.person.age = person.age
                          this.person.a0107 = data.a0107
                          this.person.a0117 = data.a0117
                          this.person.a0111a = data.a0111a
                          this.person.a0114a = data.a0114a
                          this.person.a0140 = data.a0140
                          this.person.a0134 = data.a0134
                          this.person.a0128 = data.a0128
                          this.person.a0196 = data.a0196
                          this.person.a0187a = data.a0187a
                          this.person.a1701 = data.a1701
                          this.person.qrzxw = data.qrzxw
                          this.person.qrzxl = data.qrzxl
                          this.person.qrzxwxx = data.qrzxwxx
                          this.person.qrzxlxx = data.qrzxlxx
                          this.person.zzxwxx = data.zzxwxx
                          this.person.zzxlxx = data.zzxlxx
                          this.person.zzxl = data.zzxl
                          this.person.zzxw = data.zzxw
                          this.person.a14z101 = data.a14z101
                          this.person.a15z101 = data.a15z101
                          this.person.a0184 = data.a0184
                          this.person.AG0122 = data.ag0122
                          this.person.AG0120 = data.ag0120
                          this.person.AG0121 = data.ag0121
                          this.person.AG0120A = data.ag0120a
                          this.person.AG0121A = data.ag0121a
                          this.person.A0168 = data.a0168
                          this.person.A0169 = data.a0169
                          this.person.AS0170 = data.as0170
                          this.person.AS0171 = data.as0171
                          this.person.a0192a = data.a0192a
                          this.person.AG0162 = data.ag0162
                          this.person.AG0162URL = data.ag0162url
                          this.person.AG0163 = data.ag0163
                          this.person.AG0163URL = data.ag0163url
                          this.person.AG0164 = data.ag0164
                          this.person.AG0164URL = data.ag0164url
                          this.person.AG0165 = data.ag0165
                          this.person.AG0165URL = data.ag0165url
                          this.person.wareDate = data.wareDate
                          let wareType = data.wareType;
                          let title = '人员详情';
                          if (wareType != null) {
                              if (wareType == '1') {
                                  wareType = '集中调整'
                              } else if (wareType == '2') {
                                  wareType = '集中调整'
                              } else if (wareType == '3') {
                                  wareType = '即时调整'
                              }
                              title += '-[' + wareType + ']';
                          }
                          if (result.resultdata.wareText != null) {
                              title += '-[' + result.resultdata.wareText + ']';
                          }
                          if (result.resultdata.wareDate != null) {
                              title += '-[' + result.resultdata.wareDate + ']';
                          }
                          this.title = title;
                          if (this.person.A0168 == '1') {
                              this.isStudent = true
                          } else {
                              this.isStudent = false
                          }
                          if (data.as0180 == '1') {
                              this.checkList.push('优秀女干部')
                          }
                          if (data.as0119 == '1') {
                              this.checkList.push('优秀年轻干部')
                          }
                          if (data.as0181 == '1') {
                              this.checkList.push('优秀少数民族干部')
                          }
                          if (data.as0182 == '1') {
                              this.checkList.push('优秀党外干部')
                          }
                          if (data.as0106 == '1') {
                              this.checkList.push('归侨侨眷')
                          }
                          this.person.AG0108 = data.ag0108 // 熟悉领域代码表
                          this.person.AG0108A = data.ag0108a
                          this.person.AG0110 = data.ag0110 // 风格类型代码
                          if (data.ag0110a != null && data.ag0110a.indexOf("其他") > -1) {
                              this.person.AG0110A = data.ag0110a.replace("其他", data.ag0110b)
                          }
                          this.person.AG0110A = data.ag0110a
                          this.person.AG0110B = data.ag0110b
                          this.person.AG0112 = data.ag0112 // 性格特征代码
                          if (data.ag0112a != null && data.ag0112a.indexOf("其他") > -1) {
                              this.person.AG0112A = data.ag0112a.replace("其他", data.ag0112b)
                          }
                          this.person.AG0112A = data.ag0112a
                          this.person.AG0112B = data.ag0112b
                          // this.person.AG0144 = data.ag0144 // 考察情况
                          // this.person.AG0129 = data.ag0129 // 交流情况
                          // // 实践锻炼
                          this.person.AG0128 = data.ag0128 // 性格特征代码
                          this.person.AG0128A = data.ag0128a
                          //
                          // // a01新增
                          this.person.AG0504F = itemList.includes('AG0504F') ? data.ag0504f : ''
                          this.person.AG0504G = itemList.includes('AG0504G') ? data.ag0504g : ''
                          this.person.AG0504A = itemList.includes('AG0504A') ? data.ag0504a : ''
                          this.person.AG0504B = itemList.includes('AG0504B') ? data.ag0504b : ''
                          this.person.AG0504C = itemList.includes('AG0504C') ? data.ag0504c : ''
                          this.person.AG0504D = itemList.includes('AG0504D') ? data.ag0504d : ''
                          this.person.A0191 = data.a0191
                          // this.person.AG0504F =  person.ag0504f
                          // this.person.AG0504G = person.ag0504g
                          // this.person.AG0504A = person.ag0504a
                          // this.person.AG0504B =  person.ag0504b
                          // this.person.AG0504C =  person.ag0504c
                          // this.person.AG0504D = person.ag0504d
                          // this.person.A0191 = person.a0191
                          this.person.AG0194 = data.ag0194
                          this.checkAG0194List = []
                          this.checkAG0194List.push(data.ag0194)
                          this.person.AG2501B = data.ag2501b
                          this.checkAG2501BList = []
                          this.checkAG2501BList.push(data.ag2501b)
                          this.person.AG0127B = itemList.includes('AG0127B') ? data.ag0127b : ''
                          this.person.AG0108B = itemList.includes('AG0108B') ? data.ag0108b : ''
                          this.person.AG0150B = itemList.includes('AG0150B') ? data.ag0150b : ''
                          this.person.AG0150 = data.ag0150
                          this.person.AG0150A = data.ag0150a
                          this.person.AG0152 = itemList.includes('AG0152') ? data.ag0152 : ''
                          this.person.AG0153 = data.ag0153
                          this.person.AG0154 = data.ag0154
                          this.person.AG0155 = data.ag0155
                          this.person.AG0156 = data.ag0156
                          this.person.AG0157 = data.ag0157
                          this.person.AG0158 = data.ag0158
                          this.person.AG0159 = data.ag0159
                          this.person.AG0160 = data.ag0160
                          this.person.AG0161 = data.ag0161
  
                          this.person.AG0146 = itemList.includes('AG0146') ? data.ag0146 : ''
                          this.person.AG0147 = itemList.includes('AG0147') ? data.ag0147 : ''
                          this.person.AG0148 = itemList.includes('AG0148') ? data.ag0148 : ''
                          this.person.AG0124 = data.ag0124
                          this.person.AG0125 = data.ag0125
                          this.person.AG0126 = data.ag0126
                          this.person.AG0126A = data.ag0126a
                          this.person.AG0127 = data.ag0127
                          this.person.AG0127A = data.ag0127a
                          this.person.AG0133 = data.ag0133
                          this.person.AG0134 = data.ag0134
                          this.person.AG0135 = itemList.includes('AG0135') ? data.ag0135 : ''
                          this.person.AG0136A = data.ag0136a
                          this.person.A0137 = data.a0137
                          this.person.A0137A = data.a0137a
                          this.person.AG0138 = data.ag0138
                          this.person.AG0139 = data.ag0139
                          this.person.AG0140 = itemList.includes('AG0140') ? data.ag0140 : ''
                          this.person.AG0141 = itemList.includes('AG0141') ? data.ag0141 : ''
                          this.person.AG0142 = data.ag0142
                          this.person.AG0142A = data.ag0142a
                          this.person.photoName = data.a0167
                          this.add.addAg0140 = data.ag0140
                          this.add.addAG0135 = data.ag0135
                          this.add.addAg0141 = data.ag0141
                          this.add.addAG0504F = data.ag0504f
                          this.add.addAG0504G = data.ag0504g
                          this.add.addAG0504A = data.ag0504a
                          this.add.addAG0504B = data.ag0504b
                          this.add.addAG0504C = data.ag0504c
                          this.add.addAG0504D = data.ag0504d
                          this.add.addAG0150B = data.ag0150b
                          this.add.addAG0127B = data.ag0127b
                          this.add.addAG0108B = data.ag0108b
                          this.add.addAG0152 = data.ag0152
                          this.add.addAG0146 = data.ag0146
                          this.add.addAG0147 = data.ag0147
                          this.add.addAG0148 = data.ag0148
                          if (data.ag0161 != null) {
                              const ag0161List = data.ag0161.split(',')
                              for (let i = 0; i < ag0161List.length; i++) {
                                  this.checkAG0161Key.push(ag0161List[i])
  
                              }
                          }
                          this.loading = false;
                      }
  
                  })
              },
              // 查询信息
              getA88(a0000, itemList) {
                  const params = {
                      'a0000': a0000
                  }
                  var that = this
                  const resumeList = []
                  // 查询简历信息
                  getA88ByA0000(params).then(function (result) {
                      if (result.result) {
                          result.resultdata.forEach((item) => {
                              const resume = {
                                  A0000: item.a0000,
                                  A8800: item.a8800, // id
                                  A8801: item.a8801, // 开始时间 stratTime
                                  A8802: item.a8802, // 结束时间 stopTime
                                  A8803: item.a8803, // 简历内容 remark
                                  // AS8804: item.as8804, // 任重要职务、重要经历标识
                                  // AS8804A: item.as8804a, // 任重要职务、重要经历标识描述
                                  // AS8806: item.as8806, // 任职年限 renzhiTime
                                  // AS8807: item.as8807, // 任重要职务、重要经历标识说明
                                  // AS8808: item.as8808, // 工作经历细项
                                  // AS8808A: item.as8808a, // 工作经历细项描述
                                  // AS8810: item.as8810, // 经历年限
                                  // AS8811: item.as8811, // 职务层次
                                  // AS8811A: item.as8811a // 职务层次描述
                              }
                              resumeList.push(resume)
                          })
                      }
                      that.infiledList = resumeList
                  })
                  //
                  // // 查询选调生信息
                  // getAs60ByA0000(params).then(function (result) {
                  //     that.student = {}
                  //     that.isStudent = false
                  //     that.student.A0000 = params.a0000
                  //     if (result.result) {
                  //         result.resultdata.forEach((item) => {
                  //             // eslint-disable-next-line no-sequences
                  //             that.student.AS6000 = item.as6000;
                  //             that.student.AS6003 = item.as6003;// 改人员是否选调生
                  //             // that.student.AS6004 = item.as6004; // 选为选调生的时间
                  //             that.AS6004 = item.as6004;
                  //             that.student.AS6005 = item.as6005 // 选调层次
                  //             that.addAS6006 = item.as6006 // 选调后的工作单位
                  //             // eslint-disable-next-line eqeqeq
                  //             if (that.student.AS6003 == '1') { // 判断是否选调生
                  //                 that.isStudent = true
                  //             }
                  //             // eslint-disable-next-line eqeqeq
                  //             if (that.student.AS6005 == '省选调') {
                  //                 that.radio = 1
                  //             } else if (that.student.AS6005 == '市选调') {
                  //                 that.radio = 2
                  //             } else if (that.student.AS6005 == '县选调') {
                  //                 that.radio = 3
                  //             } else if (that.student.AS6005 == '乡镇（街道）') {
                  //                 that.radio = 4
                  //             } else {
                  //                 that.radio = 0
                  //             }
                  //         })
                  //     }
                  // })
  
                  // 查询出库信息
                  getAG87ByA0000(params).then(function (result) {
                      that.outWare.A0000 = params.a0000
                      that.outWareList = []
                      that.checkAG8701Key = []
                      if (result.result) {
                          result.resultdata.forEach((item) => {
                              // eslint-disable-next-line no-sequences
                              that.outWare.AG8700 = item.ag8700, // id
                                  that.outWare.AG8701 = item.ag8701, // 出库原因
                                  that.outWare.AG8702 = item.ag8702 // 出库时间
                              // eslint-disable-next-line eqeqeq
                              if (item.ag8701 == '' || item.ag8701 == null) { // 如果未勾选，保存的是 '' ,outWareList[] 有值，勾选将会禁用
                                  that.checkAG8701Key = []
                              } else {
                                  that.checkAG8701Key.push(item.ag8701)
                              }
                          })
                      }
                  })
  
                  // var th = this
                  // // 查询头像信息
                  // getPhotoByA0000(params).then(function(result) {
                  //   th.person.photoName = ''
                  //   if (result.result) {
                  //     th.person.photoName = result.resultdata.photoname // 头像信息  地址
                  //   }
                  // })
              },
              // 根据roleId 获取权限字段
            async getJurisdictionItem() {
                  const that = this
                  // eslint-disable-next-line no-undef
              await getItem().then(function (result) {
                      that.itemList = []
                      // console.info(result.resultdata, '权限字段')
                      if (result.result) {
                          that.itemList = result.resultdata // 权限字段
                          console.log(that.itemList,"list")
                      }
                  })
              },
              // 二级代码树
              openTree(col, type, index, title) {
                  this.jianliIndex = index
                  // var name  = "A0199"
                  var that = this
                  that.showItemTreeRmb = true
                  this.$nextTick(() => {
                      // this.$refs.dialogItemTreeRmb.initData(col, type, this[`${col}`]) AG0112
                      if (col === 'AG0108' || col === 'AG0110' || col === 'AG0112' || col === 'AG0128' ||
                          col === 'AG0126' || col === 'AG0127' || col === 'AG0150' || col === 'AG0120' || col === 'AG0121') {
                          let input = null;
                          input = that.person[`${col}B`];
                          if (`${col}B` === 'AG0110B' || `${col}B` === 'AG0112B') {
                              that.$refs.dialogItemTreeRmb.initData(col, type, that.person[`${col}`], title, input, true)
                          } else {
                              that.$refs.dialogItemTreeRmb.initData(col, type, that.person[`${col}`], title)
                          }
  
                      } else {
                          console.info(that.resume)
                          that.showItemTreeRmb = true
                          that.$refs.dialogItemTreeRmb.initData(col, type, that.resume[`${col}`], title)
                      }
                      /* else if (col === 'AG0142') { // 事业单位岗位等级
                        that.institutionItemTree = true
                        that.$refs.institutionItemTree.initData(col, type, that.person[`${col}`])
                      }*/
                  })
              },
              // 单位列表
              openTreeDept() {
                  this.showDeptTree = true
                  this.$nextTick(() => {
                      this.$refs.dialogDeptTree.initDeptTree()
                  })
              },
              // 回显
              setDepartmentInit(param) {
                  this.person.A0137A = param.departmentName
                  this.person.A0137 = param.departmentId
                  this.search()
              },
              detailInit(params) {
                  this.visible = true
                  this.type = 'edit'
                  this.buttonDisabled = false
                  for (let i = params.a36s.length; i < 10; i++) {
                      const a36 = {
                          /* // 称谓
                          relation: '',
                          // 称谓描述
                          relationdesc: '',
                          // 姓名
                          name: '',
                          // 出生日期
                          birthDate: '',
                          // 政治面貌
                          policitalStatus: '',
                          // 政治面貌描述
                          policitalStatusdesc: '',
                          // 工作单位及职务
                          jobPost: ''*/
                          a3600: '',
                          a3604a: '',
                          a3601: '',
                          a3607: '',
                          a3627: '',
                          a3611: '',
                          ag3685: '',
                          ag3686: '',
                          ag3687: '',
                          ag3688: '',
                          ag3689: '',
                          ag3690: '',
                          ag3691: '',
                          ag3692: ''
                      }
                      params.a36s.push(a36)
                  }
                  this.person = params
                  var that = this
                  that.$nextTick(() => {
                      // that.$refs.inputphoto.init()
                  })
              },
              onUpdatePhoto(params) {
                  var index = params.url.lastIndexOf('.')
                  var str = params.url.substring(index, params.url.length)
                  this.person.photoFileurl = params.url
                  this.person.photoFilename = params.local_name + str
              },
              // 关闭窗体
              closeDialog() {
                  this.$emit('indexInitAdd')
                  this.visible = false
              },
              fileUpdate(response, file, fileList) {
                  if (response.result) {
                      this.person.idNumber = ''
                      this.person.name = response.resultdata.name
                      this.person.gender = response.resultdata.gender
                      this.person.genderdesc = response.resultdata.genderdesc
                      this.person.birthDate = response.resultdata.birthDate
                      this.person.nation = response.resultdata.nation
                      this.person.nationdesc = response.resultdata.nationdesc
                      this.person.AS8811 = response.resultdata.AS8811
                      this.person.A8812 = response.resultdata.A8812
                      this.person.a0111a = response.resultdata.a0111a
                      this.person.native_place = response.resultdata.native_place
                      this.person.a0114 = response.resultdata.a0114
                      this.person.birth_place = response.resultdata.birth_place
                      this.person.partyJoinDate = response.resultdata.partyJoinDate
                      this.person.workDate = response.resultdata.workDate
                      this.person.healthy = response.resultdata.healthy
                      this.person.profession = response.resultdata.profession
                      this.person.specialty = response.resultdata.specialty
                      this.person.fullEducation = response.resultdata.fullEducation
                      this.person.fullEducationdesc = response.resultdata.fullEducationdesc
                      this.person.fullDegree = response.resultdata.fullDegree
                      this.person.fullDegreedesc = response.resultdata.fullDegreedesc
                      this.person.fullEducationSchool = response.resultdata.fullEducationSchool
                      this.person.fullDegreeSchool = response.resultdata.fullDegreeSchool
                      this.person.fullDegreeSchooldesc = response.resultdata.fullDegreeSchooldesc
                      this.person.partEducation = response.resultdata.partEducation
                      this.person.partEducationdesc = response.resultdata.partEducationdesc
                      this.person.partDegree = response.resultdata.partDegree
                      this.person.partDegreedesc = response.resultdata.partDegreedesc
                      this.person.partEducationSchool = response.resultdata.partEducationSchool
                      this.person.ppartDegreechool = response.resultdata.partDegreeSchool
                      this.person.partDegreeSchooldesc = response.resultdata.partDegreeSchooldesc
                      this.person.jobFullpost = response.resultdata.jobFullpost
                      this.person.proposedDuties = response.resultdata.proposedDuties
                      this.person.proposedExemption = response.resultdata.proposedExemption
                      this.person.resume = response.resultdata.resume
                      this.person.rewardPunishment = response.resultdata.rewardPunishment
                      this.person.assessResult = response.resultdata.assessResult
                      this.person.reportingUnit = response.resultdata.reportingUnit
                      this.person.reckonAgeTime = response.resultdata.reckonAgeTime
                      this.person.fillTime = response.resultdata.fillTime
                      this.person.fillPerson = response.resultdata.fillPerson
                      this.person.photoFileurl = response.resultdata.photoFileurl
                      this.person.photoFilename = response.resultdata.photoFilename
                      const a36s = []
                      response.resultdata.a36s.forEach((item) => {
                          a36s.push({
                              /* relation: item.relation,
                              relationdesc: item.relationdesc,
                              name: item.name,
                              birthDate: item.birthDate,
                              policitalStatus: item.policitalStatus,
                              policitalStatusdesc: item.policitalStatusdesc,
                              jobPost: item.jobPost*/
                              a3600: item.a3600,
                              a3604a: item.a3604a,
                              a3601: item.a3601,
                              a3607: item.a3607,
                              a3627: item.a3627,
                              a3611: item.a3611,
                              ag3685: item.ag3685,
                              ag3686: item.ag3685,
                              ag3687: item.ag3685,
                              ag3688: item.ag3685,
                              ag3689: item.ag3685,
                              ag3690: item.ag3685,
                              ag3691: item.ag3685,
                              ag3692: item.ag3692
                          })
                      })
                      for (let i = a36s.length; i < 10; i++) {
                          const a36 = {
                              /* // 称谓
                              relation: '',
                              relationdesc: '',
                              // 姓名
                              name: '',
                              // 出生日期
                              birthDate: '',
                              // 政治面貌
                              policitalStatus: '',
                              policitalStatusdesc: '',
                              // 工作单位及职务
                              jobPost: '',
                              AG3685: ''*/
                              a3600: '',
                              a3604a: '',
                              a3601: '',
                              a3607: '',
                              a3627: '',
                              a3611: '',
                              ag3685: '',
                              ag3686: '',
                              ag3687: '',
                              ag3688: '',
                              ag3689: '',
                              ag3690: '',
                              ag3691: '',
                              ag3692: ''
                          }
                          a36s.push(a36)
                      }
                      this.person.a36s = a36s
                  }
              },
              // 获得下拉框二级代码
              getItemByCode(dataCode) {
                  const params = {
                      'dataCode': dataCode // 代码类型
                  }
                  getItemTreeNew(params).then((data) => {
                      this.itemCodeList[`${dataCode}`] = []
                      if (dataCode != "SD13") {
                          this.itemCodeList[`${dataCode}`].push({
                              'value': "",
                              'label': ""
                          })
                      }
                      data.resultdata.forEach((item) => {
                          this.itemCodeList[`${dataCode}`].push({
                              'value': item.itemCode,
                              'label': item.itemName
                          })
                      })
                  })
              },
              FileUpload(response, file, fileList, i) {
  
                  if (this.fileUpload[`AG9305_${i}`].length > 0) {
                      this.fileUpload[`AG9305_${i}`].splice(0, 1)
                  }
                  // 获取上传文件的后缀
                  const index = file.name.lastIndexOf('\.') + 1
                  // eslint-disable-next-line no-unused-vars
                  const suffix = file.name.substring(index, file.name.length)
                  // eslint-disable-next-line eqeqeq
                  // if (suffix != 'doc' && suffix != 'docx' && suffix != 'pdf') {
                  //     this.$message({
                  //         dangerouslyUseHTMLString: true,
                  //         message: '<strong>' + '上传文件类型必须为：' + 'doc/docx/pdf' + '格式' + '</strong>',
                  //         type: 'warning'
                  //     })
                  //     return
                  if (suffix != 'pdf') {
                      this.$message({
                          dangerouslyUseHTMLString: true,
                          message: '<strong>' + '上传文件类型必须为：' + 'pdf' + '格式' + '</strong>',
                          type: 'warning'
                      })
                      return
                  } else {
                      const isLt1M = file.size / 1024 / 1024 < 10
                      if (!isLt1M) {
                          this.$message({
                              type: 'warning',
                              message: '上传文件大小不能超过 10MB!'
                          })
                          return
                      } else if (response.success) {
                          // this.fileUpload[`AG9305_${i}`].push({
                          //     'filename': file.name,
                          //     'fileurl': response.url
                          //     // 'fileId': scope.row.fileId
                          // })
  
                          if (i == 1) {
                              // this.person.AG0165 = file.name
                              this.person.AG0165 = rmbFileNameEnum.CADREFILE + '.pdf'
                              this.person.AG0165URL = file.response.url
  
                          } else if (i == 2) {
                              // this.person.AG0162 = file.name
                              this.person.AG0162 = rmbFileNameEnum.REPORT + '.pdf'
                              this.person.AG0162URL = file.response.url
  
  
                          } else if (i == 3) {
                              // this.person.AG0163 = file.name
                              this.person.AG0163 = rmbFileNameEnum.OPTINION + '.pdf'
                              this.person.AG0163URL = file.response.url
  
                          } else if (i == 4) {
                              // this.person.AG0164 = file.name
                              this.person.AG0164 = rmbFileNameEnum.LETTERS + '.pdf'
                              this.person.AG0164URL = file.response.url
  
                          }
                      }
                  }
              },
              // 导入任免表
              drrmb() {
              },
              // 下载
              downloadPersonInfo() {
                  // 领导职务
                  for (var i = 0; i < this.itemCodeList.zb09_nqgbNew.length; i++) {
                      if (this.itemCodeList.zb09_nqgbNew[i].value == this.add.addAg0140) {
                          this.person.AG0140 = this.itemCodeList.zb09_nqgbNew[i].label
                      }
                  }
                  // 职级
                  for (var j = 0; j < this.itemCodeList.ZB09_ZHGL.length; j++) {
                      if (this.itemCodeList.ZB09_ZHGL[j].value == this.add.addAg0141) {
                          this.person.AG0141 = this.itemCodeList.ZB09_ZHGL[j].label
                      }
                  }
                  // 人选类比
                  for (var b = 0; b < this.itemCodeList.BJ251.length; b++) {
                      if (this.itemCodeList.BJ251[b].value == this.person.AG0124) {
                          this.person.AG0124 = this.itemCodeList.BJ251[b].label
                      }
                  }
                  // 婚姻状况
                  for (var k = 0; k < this.itemCodeList.GB22612.length; k++) {
                      if (this.itemCodeList.GB22612[k].value == this.add.addAG0135) {
                          this.person.AG0135 = this.itemCodeList.GB22612[k].label
                      }
                  }
                  // 四必核查  核查结果
                  for (var c1 = 0; c1 < this.itemCodeList.BJ602.length; c1++) {
                      if (this.itemCodeList.BJ602[c1].value == this.person.AG0154) {
                          this.person.AG0154 = this.itemCodeList.BJ602[c1].label
                      }
                  }
                  for (var c2 = 0; c2 < this.itemCodeList.BJ602.length; c2++) {
                      if (this.itemCodeList.BJ602[c2].value == this.person.AG0156) {
                          this.person.AG0156 = this.itemCodeList.BJ602[c2].label
                      }
                  }
                  for (var c3 = 0; c3 < this.itemCodeList.BJ602.length; c3++) {
                      if (this.itemCodeList.BJ602[c3].value == this.person.AG0158) {
                          this.person.AG0158 = this.itemCodeList.BJ602[c3].label
                      }
                  }
                  for (var c4 = 0; c4 < this.itemCodeList.BJ602.length; c4++) {
                      if (this.itemCodeList.BJ602[c4].value == this.person.AG0160) {
                          this.person.AG0160 = this.itemCodeList.BJ602[c4].label
                      }
                  }
                  // 股票理财
                  for (var l = 0; l < this.itemCodeList.BJ606.length; l++) {
                      if (this.itemCodeList.BJ606[l].value == this.add.addAG0148) {
                          this.person.AG0148 = this.itemCodeList.BJ606[l].label
                      }
                  }
                  this.person.AG0126 = this.person.AG0126A  // 近期培养方向
                  this.person.AG0127 = this.person.AG0127A  // 培养措施
                  this.person.AG0150 = this.person.AG0150A  // 行为特征
                  this.person.AG0108 = this.person.AG0108A  // 熟悉领域
                  this.person.zwjtlb = this.zwjtlb    // 职务具体类别
                  this.person.AS6004 = this.AS6004   // 选调时间
                  this.person.AG8702 = this.outWare.AG8702   // 出库时间
                  this.person.infiledList = this.infiledList           // 简历
                  // 家庭成员 职务具体类别
                  for (var cy = 0; cy < this.person.a36s.length; cy++) {
                      for (var yw = 0; yw < this.itemCodeList.ZB09_New.length; yw++) {
                          if (this.itemCodeList.ZB09_New[yw].value == this.person.a36s[cy].ag3685) {
                              this.person.a36s[cy].ag3685 = this.itemCodeList.ZB09_New[yw].label
                          }
                      }
                  }
                  // 家庭成员 职级
                  for (var jt = 0; jt < this.person.a36s.length; jt++) {
                      for (var yj = 0; yj < this.itemCodeList.ZB09_ZHGL.length; yj++) {
                          if (this.itemCodeList.ZB09_ZHGL[yj].value == this.person.a36s[jt].ag3686) {
                              this.person.a36s[jt].ag3686 = this.itemCodeList.ZB09_ZHGL[yj].label
                          }
                      }
                  }
                  // 家庭成员移居国境外设置为空
                  for (var yj = 0; yj < this.person.a36s.length; yj++) {
                      this.person.a36s[yj].ag3687 = ""
                  }
                  // 处理复选 女干部 年轻干部等 复选框中选择 其属性值为 1
                  // eslint-disable-next-line for-direction
                  for (var i = 0; i < this.checkList.length; i++) {
                      if (this.checkList.indexOf('优秀女干部') > -1) {
                          this.person.AS0180 = '1'
                      } else {
                          this.person.AS0180 = '0'
                      }
                      if (this.checkList.indexOf('优秀年轻干部') > -1) {
                          this.person.AS0119 = '1'
                      } else {
                          this.person.AS0119 = '0'
                      }
                      if (this.checkList.indexOf('优秀少数民族干部') > -1) {
                          this.person.AS0181 = '1'
                      } else {
                          this.person.AS0181 = '0'
                      }
                      if (this.checkList.indexOf('优秀党外干部') > -1) {
                          this.person.AS0182 = '1'
                      } else {
                          this.person.AS0182 = '0'
                      }
                      if (this.checkList.indexOf('归侨侨眷') > -1) {
                          this.person.AS0106 = '1'
                      } else {
                          this.person.AS0106 = '2'
                      }
                  }
                  // 省管干部
                  for (var sg = 0; sg < this.checkAG0139List.length; sg++) {
                      if (this.checkAG0139List.indexOf('省管干部') > -1) {
                          this.person.AG0139 = '1'
                      } else {
                          this.person.AG0139 = '0'
                      }
                  }
                  // 出库原因
                  this.person.checkAG8701Key = this.checkAG8701Key
                  // 照片
                  this.person.image = this.person.photoName
  
                  // this.person.student = this.student
                  this.person.itemList = this.itemList  // 权限
                  const params = {
                      'personList': this.person,
                      'fileName': this.person.a0101 + ' -- 基本信息详情表.doc'
                  }
                  downDocForPerson(params).then(function (result) {
                  })
              },
              clearableNum(num) {
                  if (num == 1) {
                      if (!this.person.AG0153) {  // 不勾选
                          this.person.AG0154 = ''
                      }
                  }
                  if (num == 2) {
                      if (!this.person.AG0155) {  // 不勾选
                          this.person.AG0156 = ''
                      }
                  }
                  if (num == 3) {
                      if (!this.person.AG0157) {  // 不勾选
                          this.person.AG0158 = ''
                      }
                  }
                  if (num == 4) {
                      if (!this.person.AG0159) {  // 不勾选
                          this.person.AG0160 = ''
                      }
                  }
              }
          }
      }
  </script>
  
  <style scoped>
    .rm_table1 {
      width: 100%;
      border-left: 1px solid #74a6cc;
      border-top: 1px solid #74a6cc;
      border-right: 1px solid #74a6cc;
      border-bottom: 1px solid #74a6cc;
      background: #fff;
    }
  
    .rm_table1 td {
      height: 38px;
      border-right: 1px solid #74a6cc;
      border-bottom: 1px solid #74a6cc;
      border-left: 1px solid #74a6cc;
      border-top: 1px solid #74a6cc;
      color: #333;
      font-size: 13px;
    }
  
    .rm_table1 td .el-form-item__content {
      line-height: 38px;
    }
  
    .tdBg {
      background-color: #c0dcf2;
    }
  
    .rm_table1 td.table1_w1 {
      width: 80px;
    }
  
    .rm_table1 td.table1_w2 {
      width: 128px;
    }
  
    .rm_table1 td.table1_w5 {
      width: 145px;
    }
  
    .rm_table1 td.table1_w3 {
      width: 146px;
      height: 163px;
      overflow: hidden;
      position: relative;
    }
  
    .rm_table1 td.table1_w3 .avatar-uploader .avatar {
      width: 146px;
      height: 163px;
    }
  
    .rm_table1 td.table1_w3 .avatar-uploader {
      width: 146px;
      height: 163px;
      position: absolute;
      right: 0;
      top: 0;
      /*  opacity: 0;
        z-index: 10;
        filter: alpha(opacity=0);*/
    }
  
    .rm_table1 td.table1_w3 .avatar-uploader i {
      width: 146px;
      height: 163px;
    }
  
    .rm_table1 td.table1_w6 {
      width: 90px;
    }
  
    .rm_table1 td.height35 {
      height: 35px;
    }
  
    .borderNone >>> .el-input__inner {
      border: 1px solid #fff;
      color: black;
    }
  
    .borderNone >>> .el-textarea__inner {
      border: 1px solid #fff;
      color: black;
    }
  
    .borderNone >>> .el-dialog__body .el-input__inner {
      border: 1px solid #DCDFE6;
    }
  
    .form1Resume >>> .el-textarea__inner {
      height: 285px;
      border: 1px solid #fff;
    }
  
    .form2Resume >>> .el-textarea__inner {
      height: 120px;
      border: 1px solid #fff;
      color: black;
    }
  
    .rm_table1 td.table1_w3 img {
      width: 100%;
      position: absolute;
      top: 1px;
      left: 30px;
      z-index: 1;
    }
  
    .rm_table1 td.textAlign {
      text-align: center;
      color: black;
    }
  
    .rm_table1 td .table1_font {
      color: #ff4444;
    }
  
    .rm_table1 td.lh18 {
      line-height: 16px;
    }
  
    .rm_table1 td.jianli_td {
      position: relative;
    }
  
    .rm_table1 td.jianli_td .a1 {
      font-size: 22px;
      position: absolute;
      top: 10px;
      left: 26px;
    }
  
    .rm_table1 td.jianli_td .a2 {
      font-size: 22px;
      position: absolute;
      top: 185px;
      left: 16px;
      padding: 5px 3px;
    }
  
    .rm_table1 tr.height285 {
      height: 285px;
    }
  
    .rm_table1 tr.height320 {
      height: 250px;
    }
  
    .rm_table1 tr.height140 {
      height: 140px;
    }
  
    .rm_table1 .el-form-item {
      margin-bottom: 0;
    }
  
    .rm_table1 .ql-toolbar {
      display: none;
    }
  
    .rm_table1 .quill-editor {
      height: 270px !important;
    }
  
    .rm_table1 .quill-editor p {
      text-indent: -8.5em !important;
      padding-left: 8.5em !important;
    }
  
    .rm_table1 .ql-container.ql-snow {
      border: none;
    }
  
    .rm_table1 .partydateinput1 .el-textarea__inner {
      padding: 5px 5px;
      text-align: center;
    }
  
    .rm_table1 .educationInput1 .el-textarea__inner {
      padding: 5px 5px;
      text-align: left;
    }
  
    .rm_table1 .el-input__inner {
      padding: 0px 10px;
    }
  
    .el-radio {
      margin: 0 5px 0 2px;
    }
  
    .formValue {
      color: black;
    }
  
  
  </style>
  